|
57 | 57 | required: false |
58 | 58 | default: '' |
59 | 59 | type: string |
60 | | - conda: |
61 | | - description: Whether to test with conda (deprecated) |
62 | | - required: false |
63 | | - default: 'auto' |
64 | | - type: string |
65 | 60 | setenv: |
66 | 61 | description: A map of environment variables to be available when testing |
67 | 62 | required: false |
@@ -183,7 +178,7 @@ jobs: |
183 | 178 | --posargs "${{ inputs.posargs }}" --toxdeps "${{ inputs.toxdeps }}" \ |
184 | 179 | --toxargs "${{ inputs.toxargs }}" --pytest "${{ inputs.pytest }}" \ |
185 | 180 | --pytest-results-summary "${{ inputs.pytest-results-summary }}" \ |
186 | | - --coverage "${{ inputs.coverage }}" --conda "${{ inputs.conda }}" \ |
| 181 | + --coverage "${{ inputs.coverage }}" \ |
187 | 182 | --setenv "${{ inputs.setenv }}" \ |
188 | 183 | --display "${{ inputs.display }}" --cache-path "${{ inputs.cache-path }}" \ |
189 | 184 | --cache-key "${{ inputs.cache-key }}" --cache-restore-keys "${{ inputs.cache-restore-keys }}" \ |
@@ -237,37 +232,13 @@ jobs: |
237 | 232 | choco: ${{ matrix.libraries_choco }} |
238 | 233 |
|
239 | 234 | - name: Setup Python ${{ matrix.python_version }} |
240 | | - if: ${{ matrix.conda != 'true' }} |
241 | 235 | uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # 7.3.0 |
242 | 236 | with: |
243 | 237 | version: "0.10.6" |
244 | 238 | python-version: ${{ matrix.python_version }} |
245 | 239 | activate-environment: "true" |
246 | 240 | ignore-empty-workdir: "true" |
247 | 241 |
|
248 | | - - name: Setup conda (deprecated) |
249 | | - if: ${{ matrix.conda == 'true' }} |
250 | | - uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7 |
251 | | - with: |
252 | | - environment-name: test |
253 | | - condarc: | |
254 | | - channels: |
255 | | - - conda-forge |
256 | | - use_uv: true |
257 | | - create-args: >- |
258 | | - conda |
259 | | - python=${{ matrix.python_version }} |
260 | | - uv=0.10.6 |
261 | | - init-shell: bash |
262 | | - cache-environment: true |
263 | | - cache-downloads: true |
264 | | - |
265 | | - - name: warn that using the `conda` parameter is deprecated |
266 | | - if: ${{ matrix.conda == 'true' }} |
267 | | - run: | |
268 | | - echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY |
269 | | - echo "> The conda parameter is deprecated (see https://github.com/OpenAstronomy/github-actions-workflows/issues/354)." >> $GITHUB_STEP_SUMMARY |
270 | | -
|
271 | 242 | - id: set-env |
272 | 243 | if: ${{ matrix.setenv != '' }} |
273 | 244 | run: | |
|
0 commit comments