Skip to content

Commit

Permalink
Fix: CI send coverage condition
Browse files Browse the repository at this point in the history
- pull-request events are not triggered when a PR is merged
- push events are not triggered when a PR created from a fork repository
- So we need both to run tests on every PR and after merging
  • Loading branch information
kitsuyui committed Jan 20, 2024
1 parent 0d0310a commit 26696c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Test
on:
- pull_request

# pull-request events are not triggered when a PR is merged
# push events are not triggered when a PR created from a fork repository
# So we need both to run tests on every PR and after merging
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 26696c1

Please sign in to comment.