diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 42b7d79935..03af1521d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,6 +31,16 @@ jobs: run: | make test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4.5.0 + with: + directory: ./coverage/reports/ + env_vars: OS, PYTHON + files: ./coverage.xml + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + macos-tests: runs-on: macos-latest @@ -55,4 +65,13 @@ jobs: make install_pip PIP_ARGS='.["test"]' - name: Run tests on macOS run: | - export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov + export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4.5.0 + with: + directory: ./coverage/reports/ + env_vars: OS, PYTHON + files: ./coverage.xml + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Makefile b/Makefile index df51a880bb..204f23f60a 100644 --- a/Makefile +++ b/Makefile @@ -66,4 +66,4 @@ lint: test: @echo "Running Solaar tests" - pytest --cov + pytest --cov --cov-report=xml