From afdfcb0d2cd7e5ccea8a298e8b1495851c6f85ae Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Sun, 18 Feb 2024 13:40:09 +0100 Subject: [PATCH] tests: Show pytest coverage in GitHub CI tests Related #1097 --- .github/workflows/tests.yml | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6abb675960..8967a3dde6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -59,4 +59,4 @@ jobs: - name: Run tests on macOS run: | - pytest + pytest --cov=lib/ tests/ diff --git a/setup.py b/setup.py index 393d281355..6d15b72542 100755 --- a/setup.py +++ b/setup.py @@ -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'],