Skip to content

Commit

Permalink
ci: fix coverage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed May 15, 2024
1 parent 0c9394c commit 257beb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,31 +279,31 @@ jobs:
run: |
set -e
tmpf=test-logs/results-config.txt
sudo -E env CI=$CI python3 -m pytest -s --coverage tests/config | tee $tmpf
sudo -E env CI=$CI python3 -m pytest -s --coverage --cov-build-dir=$PWD/output-linux tests/config | tee $tmpf
grep -v SKIPPED $tmpf
- name: Errors test
run: |
set -e
tmpf=test-logs/results-errors.txt
tmpf=/tmp/test-results-$$.txt
sudo -E env CI=$CI python3 -m pytest -s --coverage tests/errors | tee $tmpf
sudo -E env CI=$CI python3 -m pytest -s --coverage --cov-build-dir=$PWD/output-linux tests/errors | tee $tmpf
grep -v SKIPPED $tmpf
- name: Simple test
run: |
set -e
tmpf=test-logs/results-simplenet.txt
tmpf=/tmp/test-results-$$.txt
sudo -E env CI=$CI python3 -m pytest -s --coverage tests/simplenet | tee $tmpf
sudo -E env CI=$CI python3 -m pytest -s --coverage --cov-build-dir=$PWD/output-linux tests/simplenet | tee $tmpf
grep -v SKIPPED $tmpf
# Restore longer running test once working
- name: UT packet test
run: |
set -e
tmpf=test-logs/results-utpkt.txt
sudo python3 -m pytest -s --coverage tests/utpkt | tee $tmpf
sudo python3 -m pytest -s --coverage --cov-build-dir=$PWD/output-linux tests/utpkt | tee $tmpf
grep -v SKIPPED $tmpf
- name: Extract coverage data
Expand Down
2 changes: 1 addition & 1 deletion python-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cryptography>=41.0.2
munet>=0.13.20
munet>=0.14.6
pexpect>=4.8.0
pytest>=7.0.0
pytest-asyncio>=0.18.3
Expand Down

0 comments on commit 257beb1

Please sign in to comment.