Skip to content

Commit 10be66b

Browse files
scottsNicolasHug
andauthored
Trigger workflows more selectively (#355)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
1 parent b43fadb commit 10be66b

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

.github/workflows/build_ffmpeg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
pull_request:
1515
paths:
1616
- packaging/build_ffmpeg.sh
17+
- .github/workflows/build_ffmpeg.yaml # self reference
1718
schedule:
1819
- cron: '0 0 * * 0' # on sunday
1920

.github/workflows/cpp_tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7+
paths:
8+
- src/torchcodec/*
9+
- test/*
10+
- .github/workflows/cpp_tests.yaml # self reference
711

812
concurrency:
913
group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}

.github/workflows/docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7+
paths:
8+
- src/torchcodec/*
9+
- docs/*
10+
- .github/workflows/docs.yaml # self reference
711

812
permissions:
913
id-token: write

.github/workflows/linux_cuda_wheel.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Build and test Linux CUDA wheels
22

33
on:
44
pull_request:
5+
paths:
6+
- src/torchcodec/*
7+
- benchmarks/*
8+
- packaging/*
9+
- test/*
10+
- .github/workflows/linux_cuda_wheel.yaml # self reference
511
push:
612
branches:
713
- nightly

.github/workflows/linux_wheel.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build and test Linux wheel
22

33
on:
44
pull_request:
5+
paths:
6+
- src/torchcodec/*
7+
- packaging/*
8+
- test/*
9+
- .github/workflows/linux_wheel.yaml # self reference
510
push:
611
branches:
712
- nightly

.github/workflows/macos_wheel.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build and test MacOS wheel
22

33
on:
44
pull_request:
5+
paths:
6+
- src/torchcodec/*
7+
- packaging/*
8+
- test/*
9+
- .github/workflows/macos_wheel.yaml # self reference
510
push:
611
branches:
712
- nightly

.github/workflows/reference_resources.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
pull_request:
66
paths:
77
- test/generate_reference_resources.sh
8+
- .github/workflows/reference_resources.yaml # self reference
89
schedule:
910
- cron: '0 0 * * 0' # on sunday
1011

0 commit comments

Comments
 (0)