From 9a91dfd8f596985601a4b6e0aed24fdc5c6e7fc7 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Tue, 24 Nov 2020 20:45:51 +0800 Subject: [PATCH] ci: enable action for PR --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d35ede6..09afbae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,7 @@ name: CI on: push: branches: [ master ] + pull_request: workflow_dispatch: schedule: - cron: "0 12 * * *" @@ -21,7 +22,11 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | coverage run -m pytest - coverage run -a ./update.py --release + if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then + coverage run -a ./update.py --release + else + coverage run -a ./update.py + fi - name: Report coverage env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}