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 - name: Test && Publish
env: env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: run: |
- coverage run -m pytest coverage run -m pytest
- coverage run -a ./update.py --release coverage run -a ./update.py --release
- 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}}
run: run: |
- coverage xml && coverage report coverage xml && coverage report
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter chmod +x ./cc-test-reporter
- ./cc-test-reporter after-build ./cc-test-reporter after-build