From 54ee4c514333a02000c3f1a0faba828d17901904 Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:50:10 -0700 Subject: [PATCH] ci: show coverage report in CI, explicitly specify test directory --- .github/workflows/run_tests.yml | 7 ++++++- .gitignore | 2 ++ Makefile | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 644d62f..4fcb6f0 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,7 +6,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Manta from Source + - name: Install Manta from source run: | # Make venv python3 -m venv venv/ @@ -44,6 +44,11 @@ jobs: .coverage coverage.xml + - name: Show coverage report + run: | + source venv/bin/activate + coverage report + - name: Upload results to Codecov run: | source venv/bin/activate diff --git a/.gitignore b/.gitignore index ac7c040..72e536d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ build/ *.vcd *.out *.csv +*.xml +.coverage* # Vivado files *.log diff --git a/Makefile b/Makefile index 4b70558..e380d0a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test format clean serve_docs test: - python3 -m pytest --cov-report xml --cov=src + python3 -m pytest --cov-report xml --cov=src/manta test/ format: python3 -m ruff check --select I --fix