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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ jobs:
- name: Run all tests with coverage
run: make test-coverage

# Shared with the other repos' coverage jobs. It lives in its own public
# repo because a public repository -- this one -- cannot resolve an action
# from a private one, and it is in a different org besides.
#
# Pinned by commit rather than tag: a tag can be repointed at new code,
# and pinning means a change to the action cannot reach us until we bump
# it deliberately.
#
# It renders the numbers into the run summary and uploads coverage.xml,
# which the weekly report reads from the newest successful run on main.
# The artifact name is per-matrix-version because upload-artifact@v4
# requires unique names within a run.
- name: Coverage summary
if: always()
uses: runpod/coverage-summary-action@65b35a32ecfd9c2f0dc2352394eca1decfba4915
with:
format: cobertura
coverage-file: coverage.xml
results: pytest-results.xml
artifact-name: coverage-${{ matrix.python-version }}
if-no-files-found: warn

lint:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.head_ref != 'release-please--branches--main'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
pytest-results.xml
*.cover
*.py,cover
.hypothesis/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ test-integration: # Run integration tests only
uv run pytest tests/integration/ -v -m integration

test-coverage: # Run tests with coverage report (parallel)
uv run pytest tests/ -v -n auto --dist loadscope --cov=handler --cov=remote_execution --cov-report=term-missing
uv run pytest tests/ -v -n auto --dist loadscope --cov=handler --cov=remote_execution --cov-branch --cov-report=term-missing --cov-report=xml --junitxml=pytest-results.xml

test-fast: # Run tests with fast-fail mode
uv run pytest tests/ -v -x --tb=short
Expand Down
Loading