From 3fb5bfb4ad29e74f866ba4b0f9e1e77bcaaa5ddd Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:45:40 -0600 Subject: [PATCH] ci: run codecov directly instead of via GitHub Action --- .github/workflows/run_tests.yml | 7 +++---- Makefile | 2 +- pyproject.toml | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 0d7001d..25ded24 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -26,12 +26,11 @@ jobs: python3 -m pip install ".[dev]" - name: Run tests - run: | + run: | source ./environment.sh source venv/bin/activate make test - name: Upload results to Codecov - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + run: | + codecov -t ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/Makefile b/Makefile index 045802e..9410d21 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test format clean serve_docs test: - python3 -m pytest --cov-report json + python3 -m pytest --cov format: python3 -m black . diff --git a/pyproject.toml b/pyproject.toml index 4cd3e02..d0fbe4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ requires-python = ">=3.8" dev = [ "pytest", "pytest-cov", + "codecov", "ruff", "mkdocs-material", "amaranth_boards@git+https://github.com/amaranth-lang/amaranth-boards"