Skip to content

Run test workflow only when code-related files change - #137

Merged
jhughes-mw merged 1 commit into
mainfrom
ci-path-filters
Jul 17, 2026
Merged

Run test workflow only when code-related files change#137
jhughes-mw merged 1 commit into
mainfrom
ci-path-filters

Conversation

@jhughes-mw

Copy link
Copy Markdown
Member

Adds paths filters to the Run Tests workflow so the 6-job matrix (3 OSes × 2 MATLAB versions) only runs when files that can affect tests change:

  • any .m file
  • PythonModule/**
  • test/** (including fixtures)
  • the workflow file itself

Docs-only changes (README, license, etc.) no longer trigger test runs. The filter applies to both push and pull_request triggers.

Codespell is left unfiltered on purpose — it checks prose in all text files and is a single cheap job.

main has no required status checks, so docs-only PRs are not blocked by the absent test checks.

🤖 Generated with Claude Code

Skip the 6-job test matrix for changes that cannot affect tests
(README, docs, license, etc.). Tests still run for MATLAB sources,
the Python module, anything under test/, and the workflow itself.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.23%. Comparing base (80a802d) to head (0131503).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #137   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files           8        8           
  Lines         263      263           
=======================================
  Hits          261      261           
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jhughes-mw
jhughes-mw merged commit 9b51872 into main Jul 17, 2026
15 checks passed
@jhughes-mw
jhughes-mw deleted the ci-path-filters branch July 21, 2026 14:27
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.

1 participant