tests: Show pytest coverage in GitHub CI tests

Related #1097
This commit is contained in:
MattHag 2024-02-18 13:40:09 +01:00 committed by GitHub
parent 12de240949
commit afdfcb0d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -26,11 +26,11 @@ jobs:
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -e .[test] pip install -e ."[test]"
- name: Run tests on Ubuntu - name: Run tests on Ubuntu
run: | run: |
pytest pytest --cov=lib/ tests/
macos-build: macos-build:
runs-on: macos-latest runs-on: macos-latest
@ -59,4 +59,4 @@ jobs:
- name: Run tests on macOS - name: Run tests on macOS
run: | run: |
pytest pytest --cov=lib/ tests/

View File

@ -85,7 +85,7 @@ For instructions on installing Solaar see https://pwr-solaar.github.io/Solaar/in
'report-descriptor': ['hid-parser'], 'report-descriptor': ['hid-parser'],
'desktop-notifications': ['Notify (>= 0.7)'], 'desktop-notifications': ['Notify (>= 0.7)'],
'git-commit': ['python-git-info'], 'git-commit': ['python-git-info'],
'test': ['pytest'], 'test': ['pytest', 'pytest-cov'],
}, },
package_dir={'': 'lib'}, package_dir={'': 'lib'},
packages=['keysyms', 'hidapi', 'logitech_receiver', 'solaar', 'solaar.ui', 'solaar.cli'], packages=['keysyms', 'hidapi', 'logitech_receiver', 'solaar', 'solaar.ui', 'solaar.cli'],