Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ jobs:
if: matrix.os == 'ubuntu-latest' && matrix.version == '3.10'
working-directory: ${{ inputs.tools_ref != '' && 'tools' || '' }}
env:
COVERAGE_PROCESS_START: .coveragerc
COVERAGE_PROCESS_START: ${{ github.workspace }}/${{ inputs.tools_ref != '' && 'tools/' || '' }}.coveragerc
PYTHONPATH: ${{ github.workspace }}/${{ inputs.tools_ref != '' && 'tools' || '' }}
run: |
coverage erase
coverage run -m pytest tests/test_unittests.py --download-weights --delete-weights-now -s -v --junit-xml pytest.xml
coverage combine
coverage combine --keep
coverage xml -o coverage.xml

- name: Run tests [Windows, macOS]
Expand Down
7 changes: 7 additions & 0 deletions sitecustomize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os

# Enable coverage tracking in subprocesses
if os.environ.get("COVERAGE_PROCESS_START"):
import coverage

coverage.process_startup()
Loading