Skip to content

Commit

Permalink
Ensure that conda-forge uses packaged tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Nov 4, 2022
1 parent 8390e47 commit 9bd009b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CI_conda_forge.yml
Expand Up @@ -32,12 +32,15 @@ jobs:
miniforge-version: latest
auto-activate-base: true
python-version: ${{ matrix.python-version }}
activate-environment: test
activate-environment: pysr-test
- name: "Install pysr with mamba"
run: conda activate test && mamba install pysr
run: conda activate pysr-test && mamba install pysr
if: ${{ matrix.use-mamba }}
- name: "Install pysr with conda"
run: conda activate test && conda install pysr
run: conda activate pysr-test && conda install pysr
if: ${{ !matrix.use-mamba }}
- name: "Run tests"
run: conda activate test && python3 -m unittest test.test
run: |
conda activate pysr-test
cd $(python -c 'import pysr; from pathlib import Path; print(Path(pysr.__file__).parent.parent)')
python -m unittest test.test

0 comments on commit 9bd009b

Please sign in to comment.