Skip to content

Commit

Permalink
switch ci to pytest-cov xml generation
Browse files Browse the repository at this point in the history
  • Loading branch information
slobentanzer committed Jan 30, 2025
1 parent 755feb6 commit be26e33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:

- name: Run tests and generate coverage report
run: |
poetry run coverage run -m pytest test --ignore=./volumes
poetry run pytest --cov=biochatter --cov-report=xml test --ignore=./volumes
poetry run coverage report
poetry run coverage xml
shell: bash

- name: Generate coverage badge
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.base_ref == 'refs/heads/main' && github.event.pull_request.merged == true)
run: poetry run coverage-badge -f -o docs/coverage/coverage.svg
run: |
poetry run coverage-badge -f -o docs/coverage/coverage.svg
shell: bash

- name: Commit changes
Expand Down
6 changes: 3 additions & 3 deletions docs/coverage/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be26e33

Please sign in to comment.