From 9dac136a8bc83888833a211785823c321d350909 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Sat, 21 Nov 2020 16:16:56 +0800 Subject: [PATCH] ci: fix github action --- .github/workflows/main.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4fe31d..3efd225 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,9 +17,16 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt -r dev-requirements.txt - name: Test && Publish - uses: paambaati/codeclimate-action@v2.7.4 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + run: + - coverage run -m pytest + - coverage run -a ./update.py --release + - name: Report coverage + env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} - with: - coverageCommand: coverage run -m pytest && coverage run -a ./update.py --release + 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