Skip to content

Commit b6fdc96

Browse files
committed
Arrange workflows to avoid needless job running.
Skip main tests if linters fail. Do aarch64 last since it takes forever.
1 parent 42083ba commit b6fdc96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
SDL_VERSION: ${{ matrix.sdl-version }}
9292

9393
build:
94+
needs: [black, isort, flake8, mypy]
9495
runs-on: ${{ matrix.os }}
9596
strategy:
9697
matrix:
@@ -197,6 +198,7 @@ jobs:
197198
python -c "import tcod"
198199
199200
linux-wheels:
201+
needs: build # These take a while to build/test, so wait for normal tests to pass first.
200202
runs-on: "ubuntu-20.04"
201203
strategy:
202204
matrix:
@@ -250,6 +252,7 @@ jobs:
250252
twine upload --skip-existing wheelhouse/*
251253
252254
build-macos:
255+
needs: [black, isort, flake8, mypy]
253256
runs-on: "macos-10.15"
254257
strategy:
255258
fail-fast: true

0 commit comments

Comments
 (0)