diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1e19610..bc06fd6 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -43,8 +43,12 @@ jobs: - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root - - name: Run tests - run: pytest + - name: Test with Coverage + run: poetry run pytest --cov=. --cov-report=xml + - uses: actions/upload-artifact@v3 + with: + name: coverage-xml + path: coverage.xml env: PYTHONDONTWRITEBYTECODE: 1 PYTHONUNBUFFERED: 1 @@ -54,3 +58,4 @@ jobs: POSTGRES_PASSWORD: secret PGPASSWORD: secret +