meta: add codecov

This commit is contained in:
Fischer Moseley 2024-09-09 09:45:22 -06:00
parent 0715788ed7
commit 129f991dda
3 changed files with 9 additions and 3 deletions

View File

@ -29,4 +29,9 @@ jobs:
run: |
source ./environment.sh
source venv/bin/activate
make test
make test
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

View File

@ -1,6 +1,6 @@
.PHONY: test format clean serve_docs
test:
python3 -m pytest
python3 -m pytest --cov
format:
python3 -m black .

View File

@ -19,7 +19,8 @@ requires-python = ">=3.8"
[project.optional-dependencies]
dev = [
"pytest",
"black",
"pytest-cov",
"ruff",
"mkdocs-material",
"amaranth_boards@git+https://github.com/amaranth-lang/amaranth-boards"
]