diff --git a/.github/workflows/ci-fenics.yml b/.github/workflows/ci-fenics.yml index 3d30acc..5aef00b 100644 --- a/.github/workflows/ci-fenics.yml +++ b/.github/workflows/ci-fenics.yml @@ -68,10 +68,11 @@ jobs: export HDF5_DISABLE_VERSION_CHECK=1 python -m pytest --cov=fenics_pymc3 --cov-config=tests/.coveragerc tests/fenics -vvv - - name: Send coveralls + - name: Send coverage shell: bash -l {0} env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | conda activate fenicsproject coveralls + bash <(curl -s https://codecov.io/bash) diff --git a/.github/workflows/ci-firedrake.yml b/.github/workflows/ci-firedrake.yml index c66f436..65da244 100644 --- a/.github/workflows/ci-firedrake.yml +++ b/.github/workflows/ci-firedrake.yml @@ -61,10 +61,11 @@ jobs: export HDF5_DISABLE_VERSION_CHECK=1 python -m pytest --cov=fenics_pymc3 --cov-config=tests/.coveragerc tests/firedrake -vvv - - name: Send coveralls + - name: Send coverage shell: bash -l {0} env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: | source /home/firedrake/firedrake/bin/activate coveralls + bash <(curl -s https://codecov.io/bash) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..367d551 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,16 @@ +comment: false +coverage: + precision: 2 + round: down + range: "1...100" + + status: + project: # measuring the overall project coverage + default: # This can be anything, but it needs to exist as the name + enabled: yes # must be yes|true to enable this status + target: 1 # specify the target coverage for each commit status + # option: "auto" (must increase from parent commit or pull request base) + # option: "X%" a static target percentage to hit + threshold: 100 # allowed to drop X% and still result in a "success" commit status + if_ci_failed: error # if ci fails report status as success, error, or failure + patch: off