Skip to content

ci: run the tests on tag pushes instead of the create event - #939

Open
itzzdev09 wants to merge 2 commits into
PythonOT:masterfrom
itzzdev09:ci-tests-on-tag-push-not-create
Open

itzzdev09 wants to merge 2 commits into
PythonOT:masterfrom
itzzdev09:ci-tests-on-tag-push-not-create

Conversation

@itzzdev09

Copy link
Copy Markdown
Contributor

Types of changes

  • Docs / CI only

Motivation and context / Related issue

build_tests.yml has a create: trigger with branches: ['master'] and tags: ['**']. GitHub's create event takes no filters (branches is only valid for push, pull_request, pull_request_target, workflow_run and merge_group; tags only for push), and actionlint reports both keys as invalid. The effect is that the filters do nothing and the whole "Tests" workflow starts whenever any branch or tag is created in the repository.

The intent looks like "also run on tags", which push supports. This moves the tags: ['**'] filter under push and removes the create: block: pushing a tag still runs the tests, and creating a branch no longer does (pushes to master and pull requests are unchanged).

How has this been tested (if it applies)

Parsed the workflow with PyYAML to check the triggers (workflow_dispatch, pull_request on master, push on master and on all tags), and ran actionlint on the file (no findings other than the usual shellcheck notes). I could not run the workflow itself.

PR checklist

  • I have read the CONTRIBUTING document.
  • The documentation is up-to-date with the changes I made (check build artifacts).
  • All tests passed, and additional code has been covered with new tests.
  • I have added the PR and Issue fix to the RELEASES.md file.

@github-actions github-actions Bot added the CI label Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant