Skip to content

Commit d326483

Browse files
committed
Separate PyTorch and TensorFlow CIs.
1 parent 108ea47 commit d326483

3 files changed

Lines changed: 66 additions & 85 deletions

File tree

.github/workflows/precommit.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/pytorch.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,40 @@ name: "Build and test PyTorch"
2020
#* To avoid duplicate jobs running when both push and PR is satisfied, we use this:
2121
#* https://github.com/orgs/community/discussions/26940#discussioncomment-5686753
2222
on:
23-
workflow_call:
23+
push:
24+
branches: [main]
25+
paths:
26+
- ".github/**"
27+
- "ML-Frameworks/pytorch-aarch64/**"
28+
- "ML-Frameworks/utils/**"
29+
# Exclusions (must come after the includes):
30+
- "!ML-Frameworks/pytorch-aarch64/CHANGELOG.md"
31+
- "!ML-Frameworks/pytorch-aarch64/README.md"
32+
- "!ML-Frameworks/pytorch-aarch64/welcome.txt"
33+
pull_request:
34+
types: [opened, synchronize, reopened]
35+
paths:
36+
- ".github/**"
37+
- "ML-Frameworks/pytorch-aarch64/**"
38+
- "ML-Frameworks/utils/**"
39+
# Exclusions (must come after the includes):
40+
- "!ML-Frameworks/pytorch-aarch64/CHANGELOG.md"
41+
- "!ML-Frameworks/pytorch-aarch64/README.md"
42+
- "!ML-Frameworks/pytorch-aarch64/welcome.txt"
43+
schedule:
44+
#* minute (0-59) hour (0-23) day (1-31) month (1-12) day of the week (0 - 6)
45+
#* cron jobs run on the default (main) branch.
46+
#* set to run at 5am UCT
47+
- cron: "0 5 * * *"
48+
#* allow manual trigger of workflow when needed.
2449
workflow_dispatch:
2550

51+
#* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
52+
#* Does not apply to the main branch.
53+
concurrency:
54+
group: ${{ github.workflow }}-${{ github.ref }}
55+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
56+
2657
# Declare default permissions as read only.
2758
permissions: read-all
2859

@@ -40,6 +71,7 @@ jobs:
4071
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4172
with:
4273
path: Tool-Solutions
74+
4375
- name: Set up Docker
4476
uses: docker/setup-docker-action@v4
4577

.github/workflows/tensorflow.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,40 @@ name: "Build and test Tensorflow"
2020
#* To avoid duplicate jobs running when both push and PR is satisfied, we use this:
2121
#* https://github.com/orgs/community/discussions/26940#discussioncomment-5686753
2222
on:
23-
workflow_call:
23+
push:
24+
branches: [main]
25+
paths:
26+
- ".github/**"
27+
- "ML-Frameworks/tensorflow-aarch64/**"
28+
- "ML-Frameworks/utils/**"
29+
# Exclusions (must come after the includes):
30+
- "!ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
31+
- "!ML-Frameworks/tensorflow-aarch64/README.md"
32+
- "!ML-Frameworks/tensorflow-aarch64/welcome.txt"
33+
pull_request:
34+
types: [opened, synchronize, reopened]
35+
paths:
36+
- ".github/**"
37+
- "ML-Frameworks/tensorflow-aarch64/**"
38+
- "ML-Frameworks/utils/**"
39+
# Exclusions (must come after the includes):
40+
- "!ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
41+
- "!ML-Frameworks/tensorflow-aarch64/README.md"
42+
- "!ML-Frameworks/tensorflow-aarch64/welcome.txt"
43+
schedule:
44+
#* minute (0-59) hour (0-23) day (1-31) month (1-12) day of the week (0 - 6)
45+
#* cron jobs run on the default (main) branch.
46+
#* set to run at 5am UCT
47+
- cron: "0 5 * * *"
48+
#* allow manual trigger of workflow when needed.
2449
workflow_dispatch:
2550

51+
#* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
52+
#* Does not apply to the main branch.
53+
concurrency:
54+
group: ${{ github.workflow }}-${{ github.ref }}
55+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
56+
2657
# Declare default permissions as read only.
2758
permissions: read-all
2859

@@ -40,6 +71,7 @@ jobs:
4071
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4172
with:
4273
path: Tool-Solutions
74+
4375
- name: Set up Docker
4476
uses: docker/setup-docker-action@v4
4577

0 commit comments

Comments
 (0)