Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add codecov to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanYashchuk committed Feb 28, 2021
1 parent fd6ff26 commit a43b79a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-fenics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 2 additions & 1 deletion .github/workflows/ci-firedrake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
16 changes: 16 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a43b79a

Please sign in to comment.