ci: disable coverage report

This commit is contained in:
NateScarlet 2021-12-29 23:35:34 +08:00 committed by GitHub
parent 0d7840f580
commit 66b77f24b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,13 +33,14 @@ jobs:
- name: Update
if: ${{ !(github.ref == 'refs/heads/master' && github.event_name != 'pull_request') }}
run: coverage run -a ./update.py
- name: Report coverage
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
coverage xml && coverage report
if [[ -n "$CC_TEST_REPORTER_ID" ]]; then\
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 ;\
fi
# FIXME
#- name: Report coverage
# env:
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# run: |
# coverage xml && coverage report
# if [[ -n "$CC_TEST_REPORTER_ID" ]]; then\
# 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 ;\
# fi