Skip to content

Commit 5fd5b9e

Browse files
committed
Organize workflow for better performance.
Skip long running wheel building unless on a tag release. Improve build speed of SDL parse tests, and only do those when linters pass.
1 parent f21b750 commit 5fd5b9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373

7474
# This makes sure that the latest versions of the SDL headers parse correctly.
7575
parse_sdl:
76+
needs: [black, isort, flake8, mypy]
7677
runs-on: ${{ matrix.os }}
7778
strategy:
7879
matrix:
@@ -94,6 +95,7 @@ jobs:
9495
run: python -m build
9596
env:
9697
SDL_VERSION: ${{ matrix.sdl-version }}
98+
TDL_BUILD: DEBUG
9799

98100
build:
99101
needs: [black, isort, flake8, mypy]
@@ -204,6 +206,7 @@ jobs:
204206
205207
linux-wheels:
206208
needs: build # These take a while to build/test, so wait for normal tests to pass first.
209+
if: startsWith(github.event.ref, 'refs/tags/')
207210
runs-on: "ubuntu-latest"
208211
strategy:
209212
matrix:

0 commit comments

Comments
 (0)