From 4dbb3345e9ef366334b17d2dfbe655cc597088db Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Wed, 30 Mar 2022 14:35:08 -0400 Subject: [PATCH] ci: remove codacy + skip codecov on fail --- .github/workflows/build.yml | 20 ++++++-------------- .github/workflows/ci-run-tests.yml | 20 ++++++-------------- 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0314fd8ce..ce79a92e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,26 +122,18 @@ jobs: ./ietf/manage.py check echo "Running tests..." ./ietf/manage.py test --settings=settings_sqlitetest --failfast + coverage xml + + - name: Upload Coverage Results to Codecov + uses: codecov/codecov-action@v2.1.0 + with: + files: coverage.xml - name: Convert Coverage Results if: ${{ always() }} run: | - coverage xml mv latest-coverage.json coverage.json - - name: Report Codacy Coverage - uses: codacy/codacy-coverage-reporter-action@v1 - if: ${{ always() }} - with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml - - - name: Upload Coverage Results to Codecov - uses: codecov/codecov-action@v2.1.0 - if: ${{ always() }} - with: - files: coverage.xml - - name: Upload Coverage Results as Build Artifact uses: actions/upload-artifact@v3.0.0 if: ${{ always() }} diff --git a/.github/workflows/ci-run-tests.yml b/.github/workflows/ci-run-tests.yml index b0ad62888..001d6d9b6 100644 --- a/.github/workflows/ci-run-tests.yml +++ b/.github/workflows/ci-run-tests.yml @@ -43,26 +43,18 @@ jobs: ./ietf/manage.py check echo "Running tests..." ./ietf/manage.py test --settings=settings_sqlitetest --failfast + coverage xml + + - name: Upload Coverage Results to Codecov + uses: codecov/codecov-action@v2.1.0 + with: + files: coverage.xml - name: Convert Coverage Results if: ${{ always() }} run: | - coverage xml mv latest-coverage.json coverage.json - - name: Report Codacy Coverage - uses: codacy/codacy-coverage-reporter-action@v1 - if: ${{ always() }} - with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml - - - name: Upload Coverage Results to Codecov - uses: codecov/codecov-action@v2.1.0 - if: ${{ always() }} - with: - files: coverage.xml - - name: Upload Coverage Results as Build Artifact uses: actions/upload-artifact@v3.0.0 if: ${{ always() }}