Skip to content

Commit 96c7b50

Browse files
author
Vahid Tavanashad
committed
update workflow to have string comparison
1 parent 64adeed commit 96c7b50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
- name: Run tests
219219
if: env.rerun-tests-on-failure != 'true'
220220
run: |
221-
if [[ ${{ matrix.python }} == ${{ env.python-ver-test-all-dtypes }} ]]; then
221+
if [[ "${{ matrix.python }}" == "${{ env.python-ver-test-all-dtypes }}" ]]; then
222222
export DPNP_TEST_ALL_INT_TYPES=1
223223
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
224224
else
@@ -238,7 +238,7 @@ jobs:
238238
. $CONDA/etc/profile.d/mamba.sh
239239
mamba activate ${{ env.test-env-name }}
240240
241-
if [[ ${{ matrix.python }} == ${{ env.python-ver-test-all-dtypes }} ]]; then
241+
if [[ "${{ matrix.python }}" == "${{ env.python-ver-test-all-dtypes }}" ]]; then
242242
export DPNP_TEST_ALL_INT_TYPES=1
243243
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
244244
else
@@ -384,7 +384,7 @@ jobs:
384384
- name: Run tests
385385
if: env.rerun-tests-on-failure != 'true'
386386
run: |
387-
if (${{ matrix.python }} -eq ${{ env.python-ver-test-all-dtypes }}) {
387+
if ("${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}") {
388388
set DPNP_TEST_ALL_INT_TYPES=1
389389
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
390390
} else {
@@ -400,7 +400,7 @@ jobs:
400400
max_attempts: ${{ env.rerun-tests-max-attempts }}
401401
retry_on: any
402402
command: |
403-
if ( ${{ matrix.python }} -eq ${{ env.python-ver-test-all-dtypes }} ) {
403+
if ( "${{ matrix.python }}" -eq "${{ env.python-ver-test-all-dtypes }}" ) {
404404
set DPNP_TEST_ALL_INT_TYPES=1
405405
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
406406
} else {

0 commit comments

Comments
 (0)