Skip to content

Conversation

@beveradb
Copy link
Collaborator

Summary

  • Adds path filters to unit and integration test workflows
  • Tests only run when actual code changes are made:
    • audio_separator/** (source code)
    • tests/** (test code)
    • pyproject.toml (dependencies)
    • poetry.lock (dependency lock)
  • Docs-only PRs (README updates, etc.) and CI config changes will skip the slow test suite

Why

Integration tests take ~12 minutes on the self-hosted runner. PRs like #251 (a simple README link update) shouldn't have to wait for tests that can't possibly be affected by the change.

Test plan

  • This PR itself only touches .github/workflows/ files, so tests should be skipped (proving the feature works)

@coderabbitai ignore

🤖 Generated with Claude Code

beveradb and others added 3 commits January 15, 2026 01:39
Add path filters to unit and integration test workflows so they only
run when actual code changes are made:
- audio_separator/** (source code)
- tests/** (test code)
- pyproject.toml (dependencies)
- poetry.lock (dependency lock)

This avoids running slow integration tests (~12min) for PRs that only
update documentation (README, etc.) or CI configuration.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The previous approach using workflow-level path filters caused required
checks to stay in "Waiting" state forever because GitHub doesn't report
status for workflows that don't run.

This approach:
1. Workflow always runs (no path filter on trigger)
2. A 'changes' job detects if code files changed
3. Test jobs skip themselves via 'if' condition when no code changes
4. Skipped jobs report proper status, satisfying required checks

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Gate jobs (`unit-tests` and `integration-test`) always run and report
proper status regardless of whether tests were skipped or ran.

Branch protection should require these gate jobs instead of individual
matrix job names like `test-ubuntu (3.10)`.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@beveradb beveradb merged commit 433280c into main Jan 15, 2026
9 checks passed
@beveradb beveradb deleted the feat/sess-20260115-0135-skip-ci-docs-only branch January 15, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants