Skip to content

Commit

Permalink
tests: Show pytest coverage in GitHub CI tests
Browse files Browse the repository at this point in the history
Related #1097
  • Loading branch information
MattHag authored Feb 18, 2024
1 parent 12de240 commit afdfcb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
pip install -e ."[test]"
- name: Run tests on Ubuntu
run: |
pytest
pytest --cov=lib/ tests/
macos-build:
runs-on: macos-latest
Expand Down Expand Up @@ -59,4 +59,4 @@ jobs:
- name: Run tests on macOS
run: |
pytest
pytest --cov=lib/ tests/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _data_files():
'report-descriptor': ['hid-parser'],
'desktop-notifications': ['Notify (>= 0.7)'],
'git-commit': ['python-git-info'],
'test': ['pytest'],
'test': ['pytest', 'pytest-cov'],
},
package_dir={'': 'lib'},
packages=['keysyms', 'hidapi', 'logitech_receiver', 'solaar', 'solaar.ui', 'solaar.cli'],
Expand Down

0 comments on commit afdfcb0

Please sign in to comment.