Skip to content

Commit

Permalink
Update unit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan authored Mar 18, 2024
1 parent 88874df commit 2d8a990
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Tests
name: Python Tests & Coverage

on:
push:
Expand All @@ -25,15 +25,18 @@ jobs:
- name: Install dependencies
run: |
pip install .
pip install pytest-cov codecov
pip install pytest coverage
- name: Run tests with coverage
run: pytest --cov=tests/
run: |
coverage run -m pytest
- name: Generate coverage report
run: codecov
run: |
coverage lcov -o coverage/lcov.info
- name: Push to Coveralls
uses: coverallsapp/github-action@master
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info

0 comments on commit 2d8a990

Please sign in to comment.