From 790534db0d14f36e00395aada28899c43a9e9a5f Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Fri, 12 Jan 2024 08:48:03 +0200 Subject: Making use of coverage & codecov. Movining doc files to doc folder. --- .github/workflows/auto.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/auto.yml b/.github/workflows/auto.yml index d4c744b..b360e1c 100644 --- a/.github/workflows/auto.yml +++ b/.github/workflows/auto.yml @@ -34,5 +34,16 @@ jobs: run: poetry install # Run unittests - - name: Run unittests - run: poetry run python3 -m pytest -v + - name: Run unittests with coverage + run: poetry run python3 -m coverage run --branch -m pytest -v + + # coverage -> xml + - name: Generate coverage report + run: poetry run python3 -m coverage xml + + # xml -> codecov + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + -- cgit v1.2.3