Skip to content

Commit 80e7d72

Browse files
Use --pyargs for tests in public CI
1 parent cac52d8 commit 80e7d72

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
@@ -267,7 +267,7 @@ jobs:
267267
- name: Run tests
268268
if: env.RERUN_TESTS_ON_FAILURE != 'true'
269269
run: |
270-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
270+
python -m pytest -q -ra --disable-warnings -vv --pyargs ${{ env.TEST_SCOPE }}
271271
working-directory: ${{ github.workspace }}/test_tmp
272272

273273
- name: Run tests
@@ -283,7 +283,7 @@ jobs:
283283
. $CONDA/etc/profile.d/conda.sh
284284
conda activate ${{ env.TEST_ENV_NAME }}
285285
cd ${{ github.workspace }}/test_tmp
286-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
286+
python -m pytest -q -ra --disable-warnings -vv --pyargs ${{ env.TEST_SCOPE }}
287287
288288
test_windows:
289289
name: Test ['windows-2019', python='${{ matrix.python }}']
@@ -428,7 +428,7 @@ jobs:
428428
- name: Run tests
429429
if: env.RERUN_TESTS_ON_FAILURE != 'true'
430430
run: |
431-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
431+
python -m pytest -q -ra --disable-warnings -vv --pyargs ${{ env.TEST_SCOPE }}
432432
working-directory: ${{ env.workdir }}\test_tmp
433433

434434
- name: Run tests
@@ -443,7 +443,7 @@ jobs:
443443
command: >-
444444
mamba activate ${{ env.TEST_ENV_NAME }}
445445
& cd ${{ env.workdir }}\test_tmp
446-
& python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
446+
& python -m pytest -q -ra --disable-warnings -vv --pyargs ${{ env.TEST_SCOPE }}
447447
448448
upload:
449449
name: Upload ['${{ matrix.os }}', python='${{ matrix.python }}']

0 commit comments

Comments
 (0)