Skip to content

Commit 0a5cc66

Browse files
Skip tests on BuildJet runners by default (#86)
🛬 Skip BuildJet runners without commit message
1 parent 30a90ea commit 0a5cc66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
- name: Run style checks
3030
run: pipx run nox -s lint
3131

32+
check_commit_message:
33+
needs: [style]
34+
name: Check for skips
35+
runs-on: ubuntu-latest
36+
if: contains(github.event.head_commit.message, '[buildjet]')
37+
steps:
38+
- name: Run BuildJet runners
39+
run: echo "Running BuildJet runners"
40+
3241
build_wheels:
3342
needs: [style]
3443
name: ${{ matrix.runs-on }}-python-${{ matrix.python-version }}
@@ -79,7 +88,7 @@ jobs:
7988
run: nox -s venv
8089

8190
build_wheels_linux_aarch64:
82-
needs: [style]
91+
needs: [check_commit_message]
8392
name: linux-aarch64-buildjet-python-3.12
8493
runs-on: buildjet-2vcpu-ubuntu-2204-arm
8594
steps:

0 commit comments

Comments
 (0)