ci: show coverage report in CI, explicitly specify test directory
This commit is contained in:
parent
0fb3cb0418
commit
38808b9e5e
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Manta from Source
|
- name: Install Manta from source
|
||||||
run: |
|
run: |
|
||||||
# Make venv
|
# Make venv
|
||||||
python3 -m venv venv/
|
python3 -m venv venv/
|
||||||
|
|
@ -44,6 +44,11 @@ jobs:
|
||||||
.coverage
|
.coverage
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
|
||||||
|
- name: Show coverage report
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
coverage report
|
||||||
|
|
||||||
- name: Upload results to Codecov
|
- name: Upload results to Codecov
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ build/
|
||||||
*.vcd
|
*.vcd
|
||||||
*.out
|
*.out
|
||||||
*.csv
|
*.csv
|
||||||
|
*.xml
|
||||||
|
.coverage*
|
||||||
|
|
||||||
# Vivado files
|
# Vivado files
|
||||||
*.log
|
*.log
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
.PHONY: test format clean serve_docs
|
.PHONY: test format clean serve_docs
|
||||||
test:
|
test:
|
||||||
python3 -m pytest --cov-report xml --cov=src
|
python3 -m pytest --cov-report xml --cov=src/manta test/
|
||||||
|
|
||||||
format:
|
format:
|
||||||
python3 -m ruff check --select I --fix
|
python3 -m ruff check --select I --fix
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue