Skip to content

Commit

Permalink
Merge pull request #763 from soft-matter/fix-conda-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeim authored May 30, 2024
2 parents 2a7aab8 + 35ae622 commit 3912782
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/test-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,31 @@ jobs:
python: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v3
with:
activate-conda: false
conda-channels: conda-forge
auto-update-conda: true
python-version: ${{ matrix.python }}
channels: conda-forge

- name: Setup Environment
shell: bash
- name: Initialize conda
shell: bash -el {0}
run: |
conda create --name test python=${{ matrix.python }} pytest numpy scipy matplotlib pandas pytables numba scikit-learn pyyaml looseversion
source activate test
conda init
- name: Install packages
shell: bash -el {0} # Reads .profile so conda will work
run: |
conda create --name test python=${{ matrix.python }} pytest numpy scipy matplotlib pandas pytables numba scikit-learn pyyaml looseversion pip
conda activate test
pip install -v --no-deps -e .
python -V
conda info
conda list
- name: Run tests
shell: bash
shell: bash -el {0} # Reads .profile so conda will work
run: |
source activate test
conda activate test
pytest trackpy
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
description-file = README.md
description_file = README.md

[versioneer]
VCS = git
Expand Down

0 comments on commit 3912782

Please sign in to comment.