Skip to content

Commit 9a7a37a

Browse files
committed
Update CI configuration to use tox for testing and add conditional execution
1 parent b3df0a1 commit 9a7a37a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,13 @@ jobs:
260260
if: "matrix.use_coverage"
261261
run: python -m coverage xml
262262

263-
- name: Test with pytest
263+
- name: Test with tox (in CI)
264264
run: |
265-
tox -- --junitxml=junit.xml -o junit_family=legacy
265+
if [ "$CI" = "true" ]; then
266+
tox -- --junitxml=junit.xml -o junit_family=legacy
267+
else
268+
tox
269+
fi
266270
267271
- name: Upload coverage to Codecov
268272
if: "matrix.use_coverage"

0 commit comments

Comments
 (0)