Skip to content

Commit efba59d

Browse files
authored
run core tests only if core files are modified (#1275)
According to https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-including-paths > When all the path names match patterns in paths-ignore, the workflow will not run. > If any path names do not match patterns in paths-ignore, even if some path names match the patterns, the workflow will run.
1 parent 5c83726 commit efba59d

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/integration_test_8gpu.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ name: 8 GPU Integration Test
33
on:
44
push:
55
branches: [ main ]
6+
paths-ignore:
7+
- 'torchtitan/experiments/**'
68
pull_request:
9+
paths-ignore:
10+
- 'torchtitan/experiments/**'
711
schedule:
812
# Runs every 6 hours
913
- cron: '0 */6 * * *'
14+
1015
concurrency:
1116
group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
1217
cancel-in-progress: true

.github/workflows/integration_test_8gpu_h100.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
name: 8 GPU Integration Test at H100
1+
name: 8 GPU Integration Test on H100
22

33
on:
44
push:
55
branches: [ main ]
6+
paths-ignore:
7+
- 'torchtitan/experiments/**'
68
pull_request:
9+
paths-ignore:
10+
- 'torchtitan/experiments/**'
711
schedule:
812
# Runs every 6 hours
913
- cron: '0 */6 * * *'
14+
1015
concurrency:
1116
group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
1217
cancel-in-progress: true

.github/workflows/unit_test_cpu.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: CPU Unit Test
33
on:
44
push:
55
branches: [ main ]
6+
paths-ignore:
7+
- 'torchtitan/experiments/**'
68
pull_request:
9+
paths-ignore:
10+
- 'torchtitan/experiments/**'
711

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

0 commit comments

Comments
 (0)