Skip to content

Commit

Permalink
ci: show coverage report in CI, explicitly specify test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fischermoseley committed Nov 29, 2024
1 parent fa8b5eb commit 54ee4c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Manta from Source
- name: Install Manta from source
run: |
# Make venv
python3 -m venv venv/
Expand Down Expand Up @@ -44,6 +44,11 @@ jobs:
.coverage
coverage.xml
- name: Show coverage report
run: |
source venv/bin/activate
coverage report
- name: Upload results to Codecov
run: |
source venv/bin/activate
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ build/
*.vcd
*.out
*.csv
*.xml
.coverage*

# Vivado files
*.log
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: test format clean serve_docs
test:
python3 -m pytest --cov-report xml --cov=src
python3 -m pytest --cov-report xml --cov=src/manta test/

format:
python3 -m ruff check --select I --fix
Expand Down

0 comments on commit 54ee4c5

Please sign in to comment.