Skip to content

Commit

Permalink
Trigger workflows more selectively
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts committed Nov 9, 2024
1 parent 4bae5aa commit 17a3ff5
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_ffmpeg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
pull_request:
paths:
- packaging/build_ffmpeg.sh
- .github/workflows/build_ffmpeg.yaml # self reference
schedule:
- cron: '0 0 * * 0' # on sunday

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cpp_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]
pull_request:
paths:
- src/torchcodec/*
- test/*
- .github/workflows/cpp_tests.yaml # self reference

concurrency:
group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]
pull_request:
paths:
- src/torchcodec/*
- docs/*
- .github/workflows/docs.yaml # self reference

defaults:
run:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/linux_cuda_wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and test Linux CUDA wheels

on:
pull_request:
paths:
- src/torchcodec/*
- packaging/*
- test/*
- .github/workflows/linux_cuda_wheel.yaml # self reference
push:
branches:
- nightly
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/linux_wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and test Linux wheel

on:
pull_request:
paths:
- src/torchcodec/*
- packaging/*
- test/*
- .github/workflows/linux_wheel.yaml # self reference
push:
branches:
- nightly
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/macos_wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and test MacOS wheel

on:
pull_request:
paths:
- src/torchcodec/*
- packaging/*
- test/*
- .github/workflows/macos_wheel.yaml # self reference
push:
branches:
- nightly
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reference_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
paths:
- test/generate_reference_resources.sh
- .github/workflows/reference_resources.yaml # self reference
schedule:
- cron: '0 0 * * 0' # on sunday

Expand Down

0 comments on commit 17a3ff5

Please sign in to comment.