Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

Workflow specifies on: [push, pull_request] without branch filtering, causing tests to run twice on every PR push—once for the push event and once for the pull_request event.

Changes

  • Restrict push trigger to master branch only
  • Keep pull_request unrestricted for PR coverage
on:
  push:
    branches:
      - master
  pull_request:
Original prompt

This section details on the original issue you should resolve

<issue_title>tests run twice in pull requests</issue_title>
<issue_description>The github workflow to run tests specifies on: [push, pull_request] but it doesn't restrict the "push" event to master branch, so every push on a pull request triggers a second run of the tests </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…n PRs

Co-authored-by: amol- <601423+amol-@users.noreply.github.com>
@amol- amol- marked this pull request as ready for review November 28, 2025 21:51
Copilot AI changed the title [WIP] Fix duplicate test runs in pull requests Restrict push trigger to master branch to prevent duplicate test runs Nov 28, 2025
Copilot AI requested a review from amol- November 28, 2025 21:52
@amol- amol- merged commit 083fc58 into master Nov 28, 2025
12 checks passed
@amol- amol- deleted the copilot/fix-tests-run-twice branch November 28, 2025 21:58
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.

tests run twice in pull requests

2 participants