Skip to content

Don't run tests on branches#708

Merged
zetter-rpf merged 1 commit intomainfrom
dont-run-tests-on-branches
Mar 3, 2026
Merged

Don't run tests on branches#708
zetter-rpf merged 1 commit intomainfrom
dont-run-tests-on-branches

Conversation

@zetter-rpf
Copy link
Contributor

@zetter-rpf zetter-rpf commented Mar 2, 2026

Status

Points for consideration:

  • Security
  • Performance

What's changed?

Currently checks to run on branches and then again on PRs resulting on duplicate checks.
Don't run tests on feature branches (until they get turned into a PR), this is similar to how the Editor-ui repo is set up.

@cla-bot cla-bot bot added the cla-signed label Mar 2, 2026
@zetter-rpf zetter-rpf marked this pull request as ready for review March 2, 2026 13:53
Copilot AI review requested due to automatic review settings March 2, 2026 13:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow triggers to avoid running duplicate checks on feature-branch pushes while still running CI for pull requests and for changes merged to main.

Changes:

  • Restrict push-triggered CI runs to the main branch only.
  • Keep CI running for all pull_request targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Test coverage

90.01% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/22627938947

Copy link

@abcampo-iry abcampo-iry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct.
Worth to consider, do we need to verify tags.

Otherwise good to go.

@zetter-rpf
Copy link
Contributor Author

Worth to consider, do we need to verify tags.

I think not - we don't tend to use them on this project (but do on editor-ui for releases)

@zetter-rpf zetter-rpf force-pushed the dont-run-tests-on-branches branch from 8adc809 to 6b57c79 Compare March 3, 2026 12:59
This causes the checks to run on branches and then again on PRs
@zetter-rpf zetter-rpf force-pushed the dont-run-tests-on-branches branch from 6b57c79 to e3df515 Compare March 3, 2026 14:38
@zetter-rpf zetter-rpf merged commit 147df8d into main Mar 3, 2026
6 checks passed
@zetter-rpf zetter-rpf deleted the dont-run-tests-on-branches branch March 3, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants