Skip to content

Commit

Permalink
add .coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelbegon committed Aug 1, 2023
1 parent f32abce commit 2b4b660
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
# Include the directories where your source files reside.
source =
bioptim
# Omit files/directories you don't want to include.
omit =
tests/*
external/*
setup.py
docs/*
7 changes: 5 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ jobs:
run: coverage report -m

- name: Archive coverage report
id: archive
uses: actions/upload-artifact@v3
with:
name: coverage${{ matrix.shard }}
#path: coverage.xml
path: output/test/code-coverage.html
path: output/test/code-coverage.xml

- name: 'Echo upload path'
run: echo ${{steps.archive.outputs.path}}


merge-coverage:
Expand All @@ -107,7 +110,7 @@ jobs:
id: download
uses: actions/download-artifact@v3
with:
path: output/test/code-coverage.html
path: output/test/code-coverage.xml

- name: 'Echo download path'
run: echo ${{steps.download.outputs.download-path}}
Expand Down

0 comments on commit 2b4b660

Please sign in to comment.