Skip to content

Commit

Permalink
seperate coverage run for utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Sep 26, 2023
1 parent 4376fb0 commit 123831a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
editable: true
- name: Run unit tests and generate coverage report
run: |
coverage run --source=graphnet -m pytest tests/
coverage run --source=graphnet -m pytest tests/ --ignore=tests/utilities
coverage run --source=graphnet -m pytest tests/utilities
coverage xml -o coverage.xml
- name: Work around permission issue
run: |
Expand Down Expand Up @@ -88,7 +89,8 @@ jobs:
- name: Run unit tests and generate coverage report
run: |
set -o pipefail # To propagate exit code from pytest
coverage run --source=graphnet -m pytest tests/ --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/01_icetray/
coverage run --source=graphnet -m pytest tests/ --ignore=tests/utilities --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/01_icetray/
coverage run --source=graphnet -m pytest tests/utilities
coverage report -m
build-macos:
Expand All @@ -108,5 +110,6 @@ jobs:
- name: Run unit tests and generate coverage report
run: |
set -o pipefail # To propagate exit code from pytest
coverage run --source=graphnet -m pytest tests/ --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/examples/01_icetray/
coverage run --source=graphnet -m pytest tests/ --ignore=tests/utilities --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/01_icetray/
coverage run --source=graphnet -m pytest tests/utilities
coverage report -m

0 comments on commit 123831a

Please sign in to comment.