Skip to content

Commit

Permalink
.coveragerc to exclude GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
toruseo committed Jul 30, 2024
1 parent ffae598 commit 79d0437
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
uxsim/ResultGUIViewer/*
2 changes: 1 addition & 1 deletion .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install pytest other dependencies
run: pip install pytest pytest-xdist pytest-cov setuptools gymnasium torch osmnx deap
- name: Run examples with pytest
run: pytest -n auto tests/test_examples.py --durations=0 -v --cov=uxsim --cov-report=xml
run: pytest -n auto tests/test_examples.py --durations=0 -v --cov=uxsim --cov-report=xml --cov-config=.github/.coveragerc
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install pytest other dependencies
run: pip install pytest pytest-rerunfailures pytest-xdist pytest-cov setuptools osmnx requests
- name: Run tests with pytest
run: pytest -n auto tests/test_other_functions.py --durations=0 -v --cov=uxsim --cov-report=xml
run: pytest -n auto tests/test_other_functions.py --durations=0 -v --cov=uxsim --cov-report=xml --cov-config=.github/.coveragerc
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install pytest other dependencies
run: pip install pytest pytest-rerunfailures pytest-xdist pytest-cov setuptools
- name: Run verifications with pytest
run: pytest -n auto tests/test_verification_straight_road.py tests/test_verification_route_choice.py tests/test_verification_node.py tests/test_verification_exceptional.py tests/test_verification_sioux_falls.py tests/test_verification_multilane.py tests/test_verification_taxi.py --durations=0 -v --cov=uxsim --cov-report=xml
run: pytest -n auto tests/test_verification_straight_road.py tests/test_verification_route_choice.py tests/test_verification_node.py tests/test_verification_exceptional.py tests/test_verification_sioux_falls.py tests/test_verification_multilane.py tests/test_verification_taxi.py --durations=0 -v --cov=uxsim --cov-report=xml --cov-config=.github/.coveragerc
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit 79d0437

Please sign in to comment.