Skip to content

Commit 645cbf0

Browse files
Set shell in defaults.run for the test_windows workflow
1 parent 74741fb commit 645cbf0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ jobs:
175175
test_windows:
176176
needs: build_windows
177177
runs-on: ${{ matrix.runner }}
178-
178+
defaults:
179+
run:
180+
shell: cmd /C CALL {0}
179181
strategy:
180182
matrix:
181183
python: ['3.8', '3.9', '3.10']
@@ -197,8 +199,7 @@ jobs:
197199
auto-update-conda: true
198200
conda-build-version: '*'
199201
miniconda-version: 'latest'
200-
auto-activate-base: true
201-
activate-environment: "dpctl_test"
202+
activate-environment: dpctl_test
202203
python-version: ${{ matrix.python }}
203204
- name: Create conda channel with the artifact bit
204205
shell: cmd /C CALL {0}
@@ -216,6 +217,7 @@ jobs:
216217
run: |
217218
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
218219
- name: Output content of produced ver.json
220+
shell: pwsh
219221
run: Get-Content -Path ${{ env.workdir }}\ver.json
220222
- name: Collect dependencies
221223
shell: cmd /C CALL {0}
@@ -229,6 +231,7 @@ jobs:
229231
)
230232
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
231233
- name: Display lockfile content
234+
shell: pwsh
232235
run: Get-Content -Path .\lockfile
233236
- name: Cache conda packages
234237
uses: actions/cache@v3

0 commit comments

Comments
 (0)