From 0a5cc669727356add35b103aa875a8bdf499b000 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:36:11 +0530 Subject: [PATCH] Skip tests on BuildJet runners by default (#86) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🛬 Skip BuildJet runners without commit message --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32fa353..5cdf7ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,15 @@ jobs: - name: Run style checks run: pipx run nox -s lint + check_commit_message: + needs: [style] + name: Check for skips + runs-on: ubuntu-latest + if: contains(github.event.head_commit.message, '[buildjet]') + steps: + - name: Run BuildJet runners + run: echo "Running BuildJet runners" + build_wheels: needs: [style] name: ${{ matrix.runs-on }}-python-${{ matrix.python-version }} @@ -79,7 +88,7 @@ jobs: run: nox -s venv build_wheels_linux_aarch64: - needs: [style] + needs: [check_commit_message] name: linux-aarch64-buildjet-python-3.12 runs-on: buildjet-2vcpu-ubuntu-2204-arm steps: