diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-12 08:48:03 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-12 08:48:03 +0200 |
commit | 790534db0d14f36e00395aada28899c43a9e9a5f (patch) | |
tree | 560706235b09b45a119ab8fc066ea5a8547d06cc /.github/workflows | |
parent | 4ec901620ea94e8e89710576b4fc6ad1cf4b01e8 (diff) |
Making use of coverage & codecov. Movining doc files to doc folder.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/auto.yml | 15 |
1 files changed, 13 insertions, 2 deletions
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 }} + |