Skip to content

Commit efee306

Browse files
committed
fix: passes through if condition so no duplicate runs during pr
1 parent a759a5a commit efee306

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
test:
13+
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
1314
name: Test (pytest + coverage) — ${{ matrix.python-version }}
1415
runs-on: ubuntu-latest
1516
strategy:

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
lint:
13+
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
1314
name: Lint & types (ruff + mypy)
1415
runs-on: ubuntu-latest
1516
strategy:

0 commit comments

Comments
 (0)