Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
9bd009b
1
Parent(s):
8390e47
Ensure that conda-forge uses packaged tests
Browse files
.github/workflows/CI_conda_forge.yml
CHANGED
@@ -32,12 +32,15 @@ jobs:
|
|
32 |
miniforge-version: latest
|
33 |
auto-activate-base: true
|
34 |
python-version: ${{ matrix.python-version }}
|
35 |
-
activate-environment: test
|
36 |
- name: "Install pysr with mamba"
|
37 |
-
run: conda activate test && mamba install pysr
|
38 |
if: ${{ matrix.use-mamba }}
|
39 |
- name: "Install pysr with conda"
|
40 |
-
run: conda activate test && conda install pysr
|
41 |
if: ${{ !matrix.use-mamba }}
|
42 |
- name: "Run tests"
|
43 |
-
run:
|
|
|
|
|
|
|
|
32 |
miniforge-version: latest
|
33 |
auto-activate-base: true
|
34 |
python-version: ${{ matrix.python-version }}
|
35 |
+
activate-environment: pysr-test
|
36 |
- name: "Install pysr with mamba"
|
37 |
+
run: conda activate pysr-test && mamba install pysr
|
38 |
if: ${{ matrix.use-mamba }}
|
39 |
- name: "Install pysr with conda"
|
40 |
+
run: conda activate pysr-test && conda install pysr
|
41 |
if: ${{ !matrix.use-mamba }}
|
42 |
- name: "Run tests"
|
43 |
+
run: |
|
44 |
+
conda activate pysr-test
|
45 |
+
cd $(python -c 'import pysr; from pathlib import Path; print(Path(pysr.__file__).parent.parent)')
|
46 |
+
python -m unittest test.test
|