MilesCranmer commited on
Commit
f75d348
1 Parent(s): a03df70

Add conda-forge test without miniforge

Browse files
.github/workflows/CI_conda_forge.yml CHANGED
@@ -22,11 +22,13 @@ jobs:
22
  python-version: ['3.9']
23
  os: ['ubuntu-latest', 'macos-latest']
24
  use-mamba: [true, false]
 
25
 
26
  steps:
27
  - uses: actions/checkout@v2
28
- - name: "Set up Conda"
29
  uses: conda-incubator/setup-miniconda@v2
 
30
  with:
31
  miniforge-variant: Mambaforge
32
  miniforge-version: latest
@@ -34,11 +36,20 @@ jobs:
34
  python-version: ${{ matrix.python-version }}
35
  activate-environment: test
36
  use-mamba: ${{ matrix.use-mamba }}
 
 
 
 
 
 
 
 
 
37
  - name: "Install pysr with mamba"
38
- run: conda activate test && mamba install pysr
39
  if: ${{ matrix.use-mamba }}
40
  - name: "Install pysr with conda"
41
- run: conda activate test && conda install pysr
42
  if: ${{ !matrix.use-mamba }}
43
  - name: "Run tests"
44
  run: conda activate test && python3 -m unittest test.test && python3 -m unittest test.test_env
 
22
  python-version: ['3.9']
23
  os: ['ubuntu-latest', 'macos-latest']
24
  use-mamba: [true, false]
25
+ use-miniforge: [true, false]
26
 
27
  steps:
28
  - uses: actions/checkout@v2
29
+ - name: "Set up miniforge"
30
  uses: conda-incubator/setup-miniconda@v2
31
+ if: ${{ matrix.use-miniforge }}
32
  with:
33
  miniforge-variant: Mambaforge
34
  miniforge-version: latest
 
36
  python-version: ${{ matrix.python-version }}
37
  activate-environment: test
38
  use-mamba: ${{ matrix.use-mamba }}
39
+ - name: "Set up conda"
40
+ uses: conda-incubator/setup-miniconda@v2
41
+ if: ${{ !matrix.use-miniforge }}
42
+ with:
43
+ miniconda-version: latest
44
+ auto-activate-base: true
45
+ python-version: ${{ matrix.python-version }}
46
+ activate-environment: test
47
+ use-mamba: ${{ matrix.use-mamba }}
48
  - name: "Install pysr with mamba"
49
+ run: conda activate test && mamba install -c conda-forge pysr
50
  if: ${{ matrix.use-mamba }}
51
  - name: "Install pysr with conda"
52
+ run: conda activate test && conda install -c conda-forge pysr
53
  if: ${{ !matrix.use-mamba }}
54
  - name: "Run tests"
55
  run: conda activate test && python3 -m unittest test.test && python3 -m unittest test.test_env