Repository navigation
ci: expand unit-tests workflow paths trigger - #189
1 commit merged into
Conversation
Trigger unit tests on changes to elements/**, include/**, project.conf, .pre-commit-config.yaml, and .github/workflows/build.yml, which are read and asserted by the unit test suite. Fixes projectbluefin#187 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: mrbobbytables <mrbobbytables@users.noreply.github.com>
|
Reviewed and approved for merge — blocked only on an OAuth token scope, not on content.
The maintainer token currently carries Merge order matters here, because these four collide in
After that sequence the merged tree passes: A direct push of that merge is refused by the |
c3bd1fe
Why
.github/workflows/unit-tests.yml(Unit tests) previously fired only on changes to.github/scripts/**,.github/workflows/unit-tests.yml,files/**,tests/unit/**, andJustfile.However, the unit test suite (
just test-unitrunning pytest and bats) directly inspects and asserts on inputs in:elements/**(e.g.elements/freedesktop-sdk.bstread bytest_repart_layout.py,test_build_depends.py,test_installer_contract.py,test_sysupdate_transfers.py)include/**(include/k0s.ymlread bytest_k0s_version.py).pre-commit-config.yaml(read bytest_k0s_version.py).github/workflows/build.yml(read bytest_sysupdate_transfers.py)project.conf(release version invariant)Without these in the
paths:trigger lists forpull_requestandpush, PRs modifying these files (such as automated Renovate junction ref updates) skip theUnit testsworkflow entirely.What changed
Added the missing tracked inputs to both
pull_request.pathsandpush.pathsin.github/workflows/unit-tests.yml:.github/workflows/build.yml.pre-commit-config.yamlelements/**include/**project.confVerification
just test-unitpasses (207 passed, 1 xfailed in pytest; 62 passed/skipped in bats).actionlint .github/workflows/*.ymlpasses.pull_requestandpush)..github/scripts/docs-checks.py,check-release-version.py, andcheck-k0s-version.pypass.Closes #187
— hive: backend=copilot model=gemini-3.8-flash
🐝 Hive Agent:
contributor| SHA:45ca29e