From 642f6ddad006fce6087c8b31316cc436132865d3 Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:06:35 -0800 Subject: [PATCH] ci: generate XML coverage report for codecov --- .github/workflows/run_tests.yml | 7 +++++++ Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 9a2d24a..ca8b27e 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -36,6 +36,13 @@ jobs: source venv/bin/activate make test + - uses: actions/upload-artifact@v4 + with: + name: Coverage Report + path: | + .coverage + coverage.xml + - name: Upload results to Codecov run: | source venv/bin/activate diff --git a/Makefile b/Makefile index e765118..1c2f0ec 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test format clean serve_docs test: - python3 -m pytest --cov=. + python3 -m pytest --cov-report xml --cov=. format: python3 -m ruff check --select I --fix