ci: enable action for PR
This commit is contained in:
parent
cf58e5c4ca
commit
9a91dfd8f5
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
|
@ -3,6 +3,7 @@ name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 12 * * *"
|
- cron: "0 12 * * *"
|
||||||
|
|
@ -21,7 +22,11 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
run: |
|
run: |
|
||||||
coverage run -m pytest
|
coverage run -m pytest
|
||||||
|
if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then
|
||||||
coverage run -a ./update.py --release
|
coverage run -a ./update.py --release
|
||||||
|
else
|
||||||
|
coverage run -a ./update.py
|
||||||
|
fi
|
||||||
- name: Report coverage
|
- name: Report coverage
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user