Skip to content

Commit 6d4159c

Browse files
committed
try setup-miniconda@master
1 parent ec1353f commit 6d4159c

File tree

1 file changed

+10
-28
lines changed

1 file changed

+10
-28
lines changed

.github/workflows/job.test.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ env:
2525
ATEST_RETRIES: 3
2626
PIP_DISABLE_PIP_VERSION_CHECK: 1
2727

28-
# TODO: replace once mambaforge "just works" with setup-miniconda
29-
MAMBAFORGE_URL: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge
30-
3128
jobs:
3229
lint:
3330
name: jstest/lint
@@ -59,13 +56,12 @@ jobs:
5956
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-
6057
6158
- name: Set up Python and mamba
62-
uses: conda-incubator/setup-miniconda@v2
59+
uses: conda-incubator/setup-miniconda@master
6360
with:
64-
installer-url: ${{ env.MAMBAFORGE_URL }}-Linux-x86_64.sh
6561
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
6965

7066
- name: Install linting dependencies
7167
run: mamba env update -n test --file requirements/lint.yml
@@ -137,10 +133,10 @@ jobs:
137133
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-
138134
139135
- name: Set up Python and mamba
140-
uses: conda-incubator/setup-miniconda@v2
136+
uses: conda-incubator/setup-miniconda@master
141137
with:
142-
installer-url: ${{ env.MAMBAFORGE_URL }}-Linux-x86_64.sh
143138
condarc-file: .github/.condarc
139+
miniforge-variant: Mambaforge
144140

145141
- name: Install minimal build deps
146142
shell: bash -l {0}
@@ -255,26 +251,12 @@ jobs:
255251
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-
256252
257253
- name: Set up Python and mamba
258-
uses: conda-incubator/setup-miniconda@v2
254+
uses: conda-incubator/setup-miniconda@master
259255
with:
260-
installer-url: ${{ env.MAMBAFORGE_URL }}-${{ matrix.mambaforge }}
261-
python-version: ${{ matrix.python }}
262256
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
278260

279261
- name: List all packages
280262
run: conda list

0 commit comments

Comments
 (0)