From 40019624e803d8769ef788c2baeac12a61c66a34 Mon Sep 17 00:00:00 2001 From: Anne Archibald Date: Thu, 22 Jul 2021 16:06:00 +0100 Subject: [PATCH] Make codecov informational --- .github/workflows/ci_test.yml | 20 ++++++++++---------- codecov.yaml | 11 +++++++++++ 2 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 codecov.yaml diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index c8d1c1851..7159e1cc5 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -29,9 +29,9 @@ jobs: - os: ubuntu-latest python: '3.8' tox_env: 'notebooks' - - os: ubuntu-latest - python: '3.8' - tox_env: 'docs' +# - os: ubuntu-latest +# python: '3.8' +# tox_env: 'docs' - os: ubuntu-latest python: '3.8' tox_env: 'py38-test-alldeps-cov' @@ -83,12 +83,12 @@ jobs: run: tox -e ${{ matrix.tox_env }} -- --remote-data=any - name: Upload coverage to codecov if: "endsWith(matrix.tox_env, '-cov')" - uses: codecov/codecov-action@v1.0.13 + uses: codecov/codecov-action@v2 with: file: ./coverage.xml - - name: Publish docs as an artifact - if: "endsWith(matrix.tox_env, 'docs')" - uses: actions/upload-artifact@v2 - with: - name: documentation - path: .tox/docs_out/ +# - name: Publish docs as an artifact +# if: "endsWith(matrix.tox_env, 'docs')" +# uses: actions/upload-artifact@v2 +# with: +# name: documentation +# path: .tox/docs_out/ diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 000000000..4fb8067c1 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,11 @@ +coverage: + status: + project: + default: + informational: true + target: auto + # this allows a drop from the previous base commit coverage + threshold: 1% + patch: + default: + informational: true