From 26696c1166328492d01d86eb673b652b70854b2b Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Sat, 20 Jan 2024 16:25:14 +0900 Subject: [PATCH] Fix: CI send coverage condition - 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 --- .github/workflows/python-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 3266631..10ca49b 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -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