Skip to content
Open
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
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source =
[run]
plugins = Cython.Coverage
core = ctrace
dynamic_context = test_function
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
branch = False
relative_files = True
# Cython.Coverage cannot build a FileReporter for .pxd/.pxi (not standalone
Expand Down
32 changes: 20 additions & 12 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,26 @@ jobs:
continue-on-error: true
run: |
cd $INSTALL_ROOT
$REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/cuda_pathfinder/tests
"$REPO_ROOT/.venv/bin/python" -m coverage run \
--append --source=./cuda --rcfile="$REPO_ROOT/.coveragerc" \
-m pytest -p no:pytest_cov -v "$REPO_ROOT/cuda_pathfinder/tests"

- name: Run cuda.bindings tests
continue-on-error: true
run: |
cd $INSTALL_ROOT
$REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/cuda_bindings_13/tests
"$REPO_ROOT/.venv/bin/python" -m coverage run \
--append --source=./cuda --rcfile="$REPO_ROOT/.coveragerc" \
-m pytest -p no:pytest_cov -v "$REPO_ROOT/cuda_bindings_13/tests"

- name: Run cuda.core tests
continue-on-error: true
run: |
cd $INSTALL_ROOT
$REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/cuda_core/tests
# Start tracing before pytest imports warning categories from helpers.
"$REPO_ROOT/.venv/bin/python" -m coverage run \
--append --source=./cuda --rcfile="$REPO_ROOT/.coveragerc" \
-m pytest -p no:pytest_cov -v "$REPO_ROOT/cuda_core/tests"

- name: Copy Linux coverage file to workspace
run: |
Expand Down Expand Up @@ -427,27 +434,28 @@ jobs:
continue-on-error: true
run: |
cd "${{ steps.install-root.outputs.INSTALL_ROOT }}"
"$GITHUB_WORKSPACE/.venv/Scripts/pytest" -v --cov=./cuda --cov-append --cov-context=test --cov-config="$GITHUB_WORKSPACE/.coveragerc" "$GITHUB_WORKSPACE/cuda_pathfinder/tests"
"$GITHUB_WORKSPACE/.venv/Scripts/python" -m coverage run \
--append --source=./cuda --rcfile="$GITHUB_WORKSPACE/.coveragerc" \
-m pytest -p no:pytest_cov -v "$GITHUB_WORKSPACE/cuda_pathfinder/tests"

# The patched interpreter provides the larger stack on the main thread
# and in child interpreters. Deferred cleanup needs pytest on the main thread.
- name: Run cuda.bindings tests
continue-on-error: true
run: |
cd "${{ steps.install-root.outputs.INSTALL_ROOT }}"
"$GITHUB_WORKSPACE/.venv/Scripts/python" -m pytest \
-v --cov=./cuda --cov-append --cov-context=test \
--cov-config="$GITHUB_WORKSPACE/.coveragerc" \
"$GITHUB_WORKSPACE/cuda_bindings_13/tests"
"$GITHUB_WORKSPACE/.venv/Scripts/python" -m coverage run \
--append --source=./cuda --rcfile="$GITHUB_WORKSPACE/.coveragerc" \
-m pytest -p no:pytest_cov -v "$GITHUB_WORKSPACE/cuda_bindings_13/tests"

- name: Run cuda.core tests
continue-on-error: true
run: |
cd "${{ steps.install-root.outputs.INSTALL_ROOT }}"
"$GITHUB_WORKSPACE/.venv/Scripts/python" -m pytest \
-v --cov=./cuda --cov-append --cov-context=test \
--cov-config="$GITHUB_WORKSPACE/.coveragerc" \
"$GITHUB_WORKSPACE/cuda_core/tests"
# Start tracing before pytest imports warning categories from helpers.
"$GITHUB_WORKSPACE/.venv/Scripts/python" -m coverage run \
--append --source=./cuda --rcfile="$GITHUB_WORKSPACE/.coveragerc" \
-m pytest -p no:pytest_cov -v "$GITHUB_WORKSPACE/cuda_core/tests"

- name: Copy Windows coverage file to workspace
run: |
Expand Down
Loading