Skip to content

Commit

Permalink
Configure unit tests CI job to upload coverage reports #135
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Dec 19, 2024
1 parent 7b50e58 commit fe03415
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ jobs:
run: cp ldap_jwt_auth/logging.example.ini ldap_jwt_auth/logging.ini

- name: Run unit tests
run: pytest -c test/pytest.ini test/unit/ --cov
run: pytest -c test/pytest.ini test/unit/ --cov --cov-report=xml

- name: Upload coverage reports to Codecov
if: success()
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}

docker:
# This job triggers only if all the other jobs succeed. It builds the Docker image and if successful,
Expand Down

0 comments on commit fe03415

Please sign in to comment.