Skip to content

ci: run unit tests once per pull request push - #107

Merged
ykisana merged 1 commit into
mainfrom
ci/run-unit-tests-once
Nov 15, 2026
Merged

ykisana merged 1 commit into
mainfrom
ci/run-unit-tests-once

Conversation

@ykisana

@ykisana ykisana commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Problem

ci.yml runs on push to every branch and on pull_request to main, so each push to a PR branch runs the unit tests twice. #106, for example, got a push run at 20:36:57 and a pull_request run at 20:37:10. Since mid-October that's 60 push runs and 40 pull request runs, about 7.5 runner minutes each.

Change

Trigger push only for main. PRs still get their pull_request run, and main still gets a run after each merge.

main has no required status checks, so nothing depended on the branch push runs. Branches pushed without a PR no longer run CI.

Branch pushes ran the unit tests twice: once for the push and once for the pull request. Keep push runs for main only.
@ykisana
ykisana merged commit b29ea17 into main Nov 15, 2026
1 check passed
@ykisana
ykisana deleted the ci/run-unit-tests-once branch November 15, 2026 01:24
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