Skip to content

Commit

Permalink
first try to add coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet committed Feb 21, 2024
1 parent 6f4bf0e commit 712f4c8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ jobs:
- name: Pull code
uses: actions/checkout@v4
- name: Install dependencies
run: conda install -y -c conda-forge python=3 cupy cuda-version=11.8
run: |
conda install -y -c conda-forge python=3 cupy cuda-version=11.8
python -m pip install coverage
- name: Install code and list dependencies
run: |
python -m pip install .[plotting]
conda list
- name: Run tests
run: cd tests && python -m unittest discover
- name: Run tests and generate coverage
run: |
cd tests
coverage run -m unittest discover
coverage xml coverage.xml
- name: Get Coverage
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 712f4c8

Please sign in to comment.