ci: enable action for PR

This commit is contained in:
NateScarlet 2020-11-24 20:45:51 +08:00
parent cf58e5c4ca
commit 9a91dfd8f5
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -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}}