Skip to content

Commit

Permalink
ci: add coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel committed Oct 19, 2021
1 parent 4001366 commit fff3225
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ jobs:
retention-days: 5
if: success() || failure()

- name: Convert coverage file
if: ${{ matrix.python-version == 3.9 }}
run: |
coveragepy-lcov --data_file_path .coverage --output_file_path lcov.info
- name: Upload to Coveralls
if: ${{ matrix.python-version == 3.9 }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info

- name: Build dist
run: |
pip install setuptools wheel
Expand Down
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coveragepy-lcov <0.2.0; python_version >= '3.8'
networkx <2.7
psyneulink >=0.9.1.0, <0.9.2.0
pytest <6.3
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ addopts =
--benchmark-disable-gc
--benchmark-warmup=on
--benchmark-warmup-iterations=2
--cov
--cov-config setup.cfg
--pydocstyle
--pycodestyle
Expand Down Expand Up @@ -75,6 +76,7 @@ match-dir = (?!docs).*
branch = True
concurrency = multiprocess
source = src/graph_scheduler/
omit = src/graph_scheduler/_version.py

[coverage:report]
fail_under = 75
Expand Down

0 comments on commit fff3225

Please sign in to comment.