Skip to content

Commit

Permalink
ci: upload code coverage in builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Jul 26, 2024
1 parent 4b07d27 commit 58586a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:

- run: python -m pip install hatch
- run: hatch fmt --check
- run: hatch test
- run: hatch test --cover
- run: hatch run types:check

- uses: codecov/codecov-action@v1
# We don't need to upload coverage more than once.
if: matrix.python-version == "3.12"

release:
name: "publish to GitHub and PyPi"
runs-on: ubuntu-latest
Expand All @@ -36,7 +40,7 @@ jobs:
name: release
url: https://pypi.org/p/alpax

if: github.event_name == 'push'
if: github.event_name == "push"

# Make sure tests pass before running.
needs:
Expand Down

0 comments on commit 58586a6

Please sign in to comment.