Skip to content

Commit

Permalink
Fixing coverage part of github action
Browse files Browse the repository at this point in the history
  • Loading branch information
noamgat committed Oct 17, 2023
1 parent aa15c75 commit 8e55594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Based on https://jacobian.org/til/github-actions-poetry/
# Run this job on pushes to `main`, and for pull requests. If you don't specify
# `branches: [main], then this actions runs _twice_ on pull requests, which is
# annoying.
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:

# And finally run tests. I'm using pytest and all my pytest config is in my `pyproject.toml`
# so this line is super-simple. But it could be as complex as you need.
- run: poetry run pytest
- run: poetry run coverage run -m pytest

# Calculate coverage xml after running tests
- run: poetry run coverage xml
Expand Down

0 comments on commit 8e55594

Please sign in to comment.