diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c416686..8eec25f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') - - name: Run tests with pytest - run: pytest + - name: Run tests and collect coverage + run: pytest --cov - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: diff --git a/test-requirements.txt b/test-requirements.txt index 9bff888..ac3a04b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,4 @@ fastapi==0.110.2 httpx==0.27.0 pytest==8.1.1 +pytest-cov==5.0.0