Skip to content

Commit e18f1fd

Browse files
committed
ci: only install the required environment
1 parent 5f6f814 commit e18f1fd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/conda-python-tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,16 @@ jobs:
111111
- name: Setup proxy cache
112112
uses: nv-gha-runners/setup-proxy-cache@main
113113
continue-on-error: true
114+
115+
- name: Compute pixi environment name
116+
run: |
117+
set -euo pipefail
118+
PIXI_ENV="cu-$(cut -d. -f1-2 <<< "${{ matrix.CUDA_VER }}" | tr . -)"
119+
echo "PIXI_ENV=${PIXI_ENV}" >> "${GITHUB_ENV}"
114120
- name: Setup pixi
115121
uses: prefix-dev/[email protected]
122+
with:
123+
environments: ${{ env.PIXI_ENV }}
116124
- name: Python tests
117125
run: ${{ inputs.script }}
118126
env:

ci/test_conda.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ EXITCODE=0
2525
trap "EXITCODE=1" ERR
2626
set +e
2727

28-
PIXI_ENV="cu-$(cut -d. -f1-2 <<< "${CUDA_VER}" | tr . -)"
29-
3028
rapids-logger "Show dependencies"
3129
pixi list -e "${PIXI_ENV}"
3230

0 commit comments

Comments
 (0)