From 37a06883239f4955f15d4a6af5028b8ba3965328 Mon Sep 17 00:00:00 2001 From: Krzysztof Wisniewski Date: Sun, 3 Sep 2023 19:28:08 +0200 Subject: [PATCH] Add coverage dumping to unit tests --- .github/workflows/unit_tests.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index 43a86a91..a00e2876 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -42,6 +42,10 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] python-version: ["3.8", "3.9", "3.10", "3.11"] + env: + OS: ${{ matrix.os }} + PYTHON: ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} steps: @@ -62,3 +66,15 @@ jobs: - name: Run unit tests run: poetry run poe run-unit-tests + + - name: Dump coverage + run: poetry run coverage xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + env_vars: OS,PYTHON + flags: unittests + files: ./coverage.xml + verbose: true