Skip to content

Commit

Permalink
[ci] Merge coverage reports between pytest runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpan committed Dec 6, 2023
1 parent 9e365e4 commit d573db8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python-package-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ jobs:
- name: Test with pytest
run: |
pwd
mkdir build && cd build
pwd
mkdir -p build && cd build
# Run all unit tests under pymtl3 directory except for those in the
# yosys backend (we run yosys tests in the second run). This is
# necessary to avoid using the same component name for different
# shared libraries (Verilog and Yosys backend translation result).
pytest --cov-report xml --cov=pymtl3 .. --ignore=pymtl3/passes/backends/yosys --tb=short --hypothesis-profile CI
pytest --cov-report xml --cov=pymtl3 pymtl3/passes/backends/yosys --tb=short --hypothesis-profile CI
pytest --cov-report xml --cov=pymtl3 ../pymtl3 --ignore=../pymtl3/passes/backends/yosys --tb=short --hypothesis-profile CI
pytest --cov-report xml --cov=pymtl3 --cov-append ../pymtl3/passes/backends/yosys --tb=short --hypothesis-profile CI
- name: Upload code coverage report
run: |
Expand Down

0 comments on commit d573db8

Please sign in to comment.