ci: show coverage report in CI, explicitly specify test directory

This commit is contained in:
Fischer Moseley 2024-11-28 20:50:10 -07:00
parent fa8b5ebc4c
commit 54ee4c5143
3 changed files with 9 additions and 2 deletions

View File

@ -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/
@ -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

2
.gitignore vendored
View File

@ -16,6 +16,8 @@ build/
*.vcd
*.out
*.csv
*.xml
.coverage*
# Vivado files
*.log

View File

@ -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