|
25 | 25 | ATEST_RETRIES: 3
|
26 | 26 | PIP_DISABLE_PIP_VERSION_CHECK: 1
|
27 | 27 |
|
28 |
| - # TODO: replace once mambaforge "just works" with setup-miniconda |
29 |
| - MAMBAFORGE_URL: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge |
30 |
| - |
31 | 28 | jobs:
|
32 | 29 | lint:
|
33 | 30 | name: jstest/lint
|
@@ -59,13 +56,12 @@ jobs:
|
59 | 56 | ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-
|
60 | 57 |
|
61 | 58 | - name: Set up Python and mamba
|
62 |
| - uses: conda-incubator/setup-miniconda@v2 |
| 59 | + uses: conda-incubator/setup-miniconda@master |
63 | 60 | with:
|
64 |
| - installer-url: ${{ env.MAMBAFORGE_URL }}-Linux-x86_64.sh |
65 | 61 | condarc-file: .github/.condarc
|
66 |
| - |
67 |
| - - name: Install base conda dependencies |
68 |
| - run: mamba env update -n test --file requirements/github-actions.yml |
| 62 | + environment-file: requirements/github-actions.yml |
| 63 | + miniforge-variant: Mambaforge |
| 64 | + use-mamba: true |
69 | 65 |
|
70 | 66 | - name: Install linting dependencies
|
71 | 67 | run: mamba env update -n test --file requirements/lint.yml
|
@@ -137,10 +133,10 @@ jobs:
|
137 | 133 | ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-
|
138 | 134 |
|
139 | 135 | - name: Set up Python and mamba
|
140 |
| - uses: conda-incubator/setup-miniconda@v2 |
| 136 | + uses: conda-incubator/setup-miniconda@master |
141 | 137 | with:
|
142 |
| - installer-url: ${{ env.MAMBAFORGE_URL }}-Linux-x86_64.sh |
143 | 138 | condarc-file: .github/.condarc
|
| 139 | + miniforge-variant: Mambaforge |
144 | 140 |
|
145 | 141 | - name: Install minimal build deps
|
146 | 142 | shell: bash -l {0}
|
@@ -255,26 +251,12 @@ jobs:
|
255 | 251 | ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-
|
256 | 252 |
|
257 | 253 | - name: Set up Python and mamba
|
258 |
| - uses: conda-incubator/setup-miniconda@v2 |
| 254 | + uses: conda-incubator/setup-miniconda@master |
259 | 255 | with:
|
260 |
| - installer-url: ${{ env.MAMBAFORGE_URL }}-${{ matrix.mambaforge }} |
261 |
| - python-version: ${{ matrix.python }} |
262 | 256 | condarc-file: .github/.condarc
|
263 |
| - |
264 |
| - - name: Describe conda |
265 |
| - run: | |
266 |
| - conda info |
267 |
| - conda config --show-sources |
268 |
| - conda config --show |
269 |
| -
|
270 |
| - - name: Install conda dependencies (unix) |
271 |
| - if: ${{ matrix.os != 'windows' }} |
272 |
| - run: mamba env update -n test --file requirements/github-actions.yml |
273 |
| - |
274 |
| - - name: Install conda dependencies (windows) |
275 |
| - if: ${{ matrix.os == 'windows' }} |
276 |
| - shell: cmd /C call {0} |
277 |
| - run: mamba env update -n test --file requirements/github-actions.yml |
| 257 | + environment-file: requirements/github-actions.yml |
| 258 | + miniforge-variant: Mambaforge |
| 259 | + use-mamba: true |
278 | 260 |
|
279 | 261 | - name: List all packages
|
280 | 262 | run: conda list
|
|
0 commit comments