Skip to content

Commit 7c97c4a

Browse files
author
Vahid Tavanashad
committed
use powershell
1 parent 004ce9e commit 7c97c4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,18 @@ jobs:
382382
python -c "import dpnp; print(dpnp.__version__)"
383383
384384
- name: Run tests
385+
shell: pwsh
385386
if: env.rerun-tests-on-failure != 'true'
386387
run: |
387-
if ("${{ matrix.python }}" == "${{ env.python-ver-test-all-dtypes }}") {
388+
if ("${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}") {
388389
set DPNP_TEST_ALL_INT_TYPES=1
389390
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
390391
} else {
391392
python -m pytest -n auto -ra --pyargs ${{ env.package-name }}.tests
392393
}
393394
394395
- name: Run tests
396+
shell: pwsh
395397
if: env.rerun-tests-on-failure == 'true'
396398
id: run_tests_win
397399
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
@@ -400,7 +402,7 @@ jobs:
400402
max_attempts: ${{ env.rerun-tests-max-attempts }}
401403
retry_on: any
402404
command: |
403-
if ( "${{ matrix.python }}" == "${{ env.python-ver-test-all-dtypes }}" ) {
405+
if ( "${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}" ) {
404406
set DPNP_TEST_ALL_INT_TYPES=1
405407
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
406408
} else {

0 commit comments

Comments
 (0)