Skip to content

Commit

Permalink
CI: Do not run tests twice on a PR from the same repo's branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Feb 14, 2024
1 parent e151089 commit 7a9944a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
pipx run nox -s pylint
checks:
# pull requests are a duplicate of a branch push if within the same repo.
if:
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.repository

name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
needs: [pre-commit]
Expand Down

0 comments on commit 7a9944a

Please sign in to comment.