Skip to content

Commit

Permalink
Fix usage of conda-incubator/setup-miniconda (#1112)
Browse files Browse the repository at this point in the history
* Drop miniforge-variant

* try mamba-version

* try

* cleanup

* fix
  • Loading branch information
jtpio authored Jan 9, 2025
1 parent ec483e9 commit f5d2b9e
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/job.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: requirements/github-actions.yml
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,nodefaults
channel-priority: true

- name: Install linting dependencies
run: mamba env update -n test --file requirements/lint.yml
Expand Down Expand Up @@ -113,10 +114,6 @@ jobs:
- name: Check distributions
run: python scripts/distcheck.py

- name: Rename uncached conda packages
shell: bash
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"

build:
name: build
runs-on: ${{ matrix.os }}-latest
Expand All @@ -141,8 +138,9 @@ jobs:
- name: Set up Python and mamba
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,nodefaults
channel-priority: true

- name: Install minimal build deps
run: mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
Expand Down Expand Up @@ -201,10 +199,6 @@ jobs:
name: jupyterlab-lsp dist ${{ github.run_number }}
path: ./dist

- name: Rename uncached conda packages
shell: bash
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"

acceptance:
runs-on: ${{ matrix.os }}-latest
name: atest ${{ matrix.os }} py${{ matrix.python }} r${{ matrix.r }}
Expand Down Expand Up @@ -245,8 +239,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
environment-file: requirements/github-actions.yml
miniforge-variant: Mambaforge
use-mamba: true
mamba-version: "*"
channels: conda-forge,nodefaults
channel-priority: true

- name: List all packages
run: conda list
Expand Down Expand Up @@ -333,10 +328,6 @@ jobs:
path: ./build/reports
if: always()

- name: Rename uncached conda packages
shell: bash
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"

smoke:
name: smoke ${{ matrix.os }} py${{ matrix.python }}
runs-on: ${{ matrix.os }}-latest
Expand Down

0 comments on commit f5d2b9e

Please sign in to comment.