Skip to content

Commit 1730e6b

Browse files
author
Vahid Tavanashad
committed
use cmd format
1 parent 7c97c4a commit 1730e6b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/conda-package.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,18 +382,16 @@ jobs:
382382
python -c "import dpnp; print(dpnp.__version__)"
383383
384384
- name: Run tests
385-
shell: pwsh
386385
if: env.rerun-tests-on-failure != 'true'
387386
run: |
388-
if ("${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}") {
387+
if "%matrix_python%" == "%python-ver-test-all-dtypes%" (
389388
set DPNP_TEST_ALL_INT_TYPES=1
390-
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
391-
} else {
392-
python -m pytest -n auto -ra --pyargs ${{ env.package-name }}.tests
393-
}
389+
python -m pytest -ra --pyargs %package-name%.tests
390+
) else (
391+
python -m pytest -n auto -ra --pyargs %package-name%.tests
392+
)
394393
395394
- name: Run tests
396-
shell: pwsh
397395
if: env.rerun-tests-on-failure == 'true'
398396
id: run_tests_win
399397
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
@@ -402,12 +400,12 @@ jobs:
402400
max_attempts: ${{ env.rerun-tests-max-attempts }}
403401
retry_on: any
404402
command: |
405-
if ( "${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}" ) {
403+
if "%matrix_python%" == "%python-ver-test-all-dtypes%" (
406404
set DPNP_TEST_ALL_INT_TYPES=1
407-
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
408-
} else {
409-
python -m pytest -n auto -ra --pyargs ${{ env.package-name }}.tests
410-
}
405+
python -m pytest -ra --pyargs %package-name%.tests
406+
) else (
407+
python -m pytest -n auto -ra --pyargs %package-name%.tests
408+
)
411409
412410
upload:
413411
name: Upload

0 commit comments

Comments
 (0)