From 7655b2a6a8c6cf40ea6b160e7b763a7529aa83a2 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 26 Jul 2024 00:17:36 +0200 Subject: [PATCH] ci: run coverage reports --- .forgejo/workflows/tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 0fa275c..4173ebb 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -8,6 +8,13 @@ jobs: - run: apk add --no-cache git nodejs-current - uses: actions/checkout@v4 - - run: pip install -U pytest beartype termcolor - - run: pytest - working-directory: compiler + - run: pip install -U pytest pytest-cov beartype termcolor + - run: > + pytest + --cov-report=term + --cov-report=html + --cov=compiler compiler/tests/ + - uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: htmlcov/ \ No newline at end of file