diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 8d718c1..0d7001d 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -29,4 +29,9 @@ jobs: run: | source ./environment.sh source venv/bin/activate - make test \ No newline at end of file + make test + + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/Makefile b/Makefile index d8b63bc..9410d21 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test format clean serve_docs test: - python3 -m pytest + python3 -m pytest --cov format: python3 -m black . diff --git a/pyproject.toml b/pyproject.toml index ff08756..4cd3e02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" ]