|
38 | 38 | - id: get-envs |
39 | 39 | run: | |
40 | 40 | # Stable and dev environments |
41 | | - STABLE_DEV_JSON=$(uvx --with "virtualenv<21" hatch env show --json | jq -c ' |
| 41 | + STABLE_DEV_JSON=$(uvx --from "hatch==1.16.5" hatch env show --json | jq -c ' |
42 | 42 | to_entries |
43 | 43 | | map( |
44 | 44 | select(.key | startswith("hatch-test") and endswith("12") and (contains("prerelease") | not)) |
|
50 | 50 | echo "stable-dev=${STABLE_DEV_JSON}" | tee -a $GITHUB_OUTPUT |
51 | 51 |
|
52 | 52 | # Prerelease environments |
53 | | - PRERELEASE_JSON=$(uvx --with "virtualenv<21" hatch env show --json | jq -c ' |
| 53 | + PRERELEASE_JSON=$(uvx --from "hatch==1.16.5" hatch env show --json | jq -c ' |
54 | 54 | to_entries |
55 | 55 | | map( |
56 | 56 | select(.key | startswith("hatch-test") and endswith("12") and contains("prerelease")) |
@@ -89,18 +89,18 @@ jobs: |
89 | 89 | echo "LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV |
90 | 90 |
|
91 | 91 | - name: Install dependencies |
92 | | - run: uvx --with "virtualenv<21" hatch -v env create ${{ matrix.env.name }} |
| 92 | + run: uvx --from "hatch==1.16.5" hatch -v env create ${{ matrix.env.name }} |
93 | 93 |
|
94 | 94 | - name: Run tests |
95 | 95 | run: | |
96 | 96 | mkdir -p test-data |
97 | 97 | if [[ "${{ matrix.env.name }}" == *"stable"* ]]; then |
98 | | - uvx --with "virtualenv<21" hatch run ${{ matrix.env.name }}:run-cov -v --color=yes |
99 | | - uvx --with "virtualenv<21" hatch run ${{ matrix.env.name }}:coverage xml |
100 | | - uvx --with "virtualenv<21" hatch run ${{ matrix.env.name }}:cov-report |
| 98 | + uvx --from "hatch==1.16.5" hatch run ${{ matrix.env.name }}:run-cov -v --color=yes |
| 99 | + uvx --from "hatch==1.16.5" hatch run ${{ matrix.env.name }}:coverage xml |
| 100 | + uvx --from "hatch==1.16.5" hatch run ${{ matrix.env.name }}:cov-report |
101 | 101 |
|
102 | 102 | else |
103 | | - uvx --with "virtualenv<21" hatch run ${{ matrix.env.name }}:run -v --color=yes |
| 103 | + uvx --from "hatch==1.16.5" hatch run ${{ matrix.env.name }}:run -v --color=yes |
104 | 104 | fi |
105 | 105 |
|
106 | 106 | - name: Upload test results |
@@ -157,10 +157,10 @@ jobs: |
157 | 157 | run: nvidia-smi |
158 | 158 |
|
159 | 159 | - name: Install dependencies |
160 | | - run: uvx --with "virtualenv<21" hatch -v env create ${{ matrix.env.name }} |
| 160 | + run: uvx --from "hatch==1.16.5" hatch -v env create ${{ matrix.env.name }} |
161 | 161 |
|
162 | 162 | - name: Run tests |
163 | | - run: uvx --with "virtualenv<21" hatch run ${{ matrix.env.name }}:run -v --color=yes |
| 163 | + run: uvx --from "hatch==1.16.5" hatch run ${{ matrix.env.name }}:run -v --color=yes |
164 | 164 |
|
165 | 165 | remove-label: |
166 | 166 | name: Remove 'run-gpu-ci' Label |
|
0 commit comments