Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
Attempt to add code coverage to workflows
  • Loading branch information
wrightky authored Jun 5, 2023
1 parent f957bab commit ad90178
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow installs and tests ipdw, currently only tests on ubuntu and Python 3.11

name: Python application
name: Build

on:
push:
Expand Down Expand Up @@ -35,7 +35,18 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-cov
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
files: ./coverage1.xml,./coverage2.xml,!./cache
flags: unittests
name: codecov-umbrella
verbose: true

0 comments on commit ad90178

Please sign in to comment.