From 129f991dda01ba15943ccb346cbd4b54026c65fd Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:45:22 -0600 Subject: [PATCH] meta: add codecov --- .github/workflows/run_tests.yml | 7 ++++++- Makefile | 2 +- pyproject.toml | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) 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" ]