Skip to content

Commit

Permalink
Run whole test suite also an pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Oct 22, 2024
1 parent 5383698 commit eeac021
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: test

on: pull_request
# TODO workaround for Codecov/squash and merge, a bit wasteful
# Revise e.g. via https://github.com/codecov/feedback/issues/369
on:
pull_request:
push:
branches:
- 'main'

jobs:
test:
Expand Down Expand Up @@ -138,15 +144,6 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .coverage.xml
#-----------------------------------
# Upload coverage for `main`, too
#-----------------------------------
- name: Upload results to Codecov for `main`
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .coverage.xml
override_branch: main

pre-commit:
name: Code quality
Expand Down

0 comments on commit eeac021

Please sign in to comment.