From e10922c7365baa616da58980e3d8a9caeeed4619 Mon Sep 17 00:00:00 2001 From: Artur Toshev Date: Fri, 5 Jan 2024 15:49:24 +0100 Subject: [PATCH] add coverage report generation --- .github/workflows/tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c027ae9..c2b1a24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,12 +31,13 @@ jobs: - name: Install dependencies run: | poetry install - - name: Run pytest + - name: Run pytest and generate coverage report run: | - .venv/bin/pytest - - name: Upload coverage reports to Codecov + .venv/bin/pytest --cov-report=xml + - name: Upload coverage report to Codecov uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittests verbose: true