ci: fix github action

This commit is contained in:
NateScarlet 2020-11-21 16:19:52 +08:00
parent 9dac136a8b
commit 93d054591b
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -19,14 +19,14 @@ jobs:
- name: Test && Publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run:
- coverage run -m pytest
- coverage run -a ./update.py --release
run: |
coverage run -m pytest
coverage run -a ./update.py --release
- name: Report coverage
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run:
- coverage xml && coverage report
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter after-build
run: |
coverage xml && coverage report
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter after-build