Skip to content

Commit 1140683

Browse files
committed
TEMPORARY Disable "pytest" workflow for docs PRs
1 parent 3a6fef1 commit 1140683

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/pytest.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Test
22

33
on:
44
# To debug the workflow, uncomment this entry AND comment pull_request_target
5-
# pull_request:
6-
# branches: [ main ]
7-
pull_request_target:
8-
branches: [ main, "migrate**" ]
9-
types: [ labeled, opened, reopened, synchronize ]
5+
pull_request:
6+
branches: [ main ]
7+
# pull_request_target:
8+
# branches: [ main, "migrate**" ]
9+
# types: [ labeled, opened, reopened, synchronize ]
1010
schedule:
1111
- cron: "0 5 * * *" # = 06:00 CET = 07:00 CEST
1212

@@ -25,8 +25,20 @@ env:
2525
python-version: "3.13"
2626

2727
jobs:
28+
skip:
29+
name: Skip workflow on PR branch
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Early exit
33+
run: |
34+
gh run cancel ${{ github.run_id }}
35+
gh run watch ${{ github.run_id }}
36+
env:
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
2839
check:
2940
name: Check permissions, identify ref to test
41+
needs: skip
3042
runs-on: ubuntu-latest
3143
steps:
3244
- if: >

0 commit comments

Comments
 (0)