@@ -42,17 +42,16 @@ permissions: {}
4242# Set from inputs for workflow_dispatch, or set defaults to test push/PR events
4343env :
4444 GIT_REMOTE : ${{ github.event.inputs.git_remote || 'mhsmith' }}
45- GIT_COMMIT : ${{ github.event.inputs.git_commit || 'c9700e47b6bf98f6ca2e60ecdbee15ba228dcc7c ' }}
46- CPYTHON_RELEASE : ${{ github.event.inputs.cpython_release || '3.15.992 ' }}
45+ GIT_COMMIT : ${{ github.event.inputs.git_commit || '7e87375eeff06e03a66209e506ce83c3f70ec57f ' }}
46+ CPYTHON_RELEASE : ${{ github.event.inputs.cpython_release || '3.15.0b991 ' }}
4747
4848jobs :
4949 verify-input :
5050 runs-on : ubuntu-24.04
5151 timeout-minutes : 5
5252 outputs :
53- # Needed because env vars are not available in "if" conditions
54- cpython_release : ${{ env.CPYTHON_RELEASE }}
55- cpython_branch : ${{ steps.get-branch.outputs.branch }}
53+ build-docs : ${{ steps.select-jobs.outputs.docs }}
54+ build-android : ${{ steps.select-jobs.outputs.android }}
5655 steps :
5756 - name : " Workflow run information"
5857 run : |
@@ -75,10 +74,18 @@ jobs:
7574 exit 1
7675 fi
7776
78- - name : " Get CPython branch"
79- id : get-branch
77+ - name : " Setup Python"
78+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
79+ with :
80+ python-version : 3.12
81+
82+ - name : " Install dependencies"
83+ run : python -m pip install --no-deps -r requirements.txt
84+
85+ - name : " Select jobs"
86+ id : select-jobs
8087 run : |
81- echo "branch=$(echo "$ CPYTHON_RELEASE" | cut -d . -f 1-2) " >> "$GITHUB_OUTPUT"
88+ ./select-jobs.py "$ CPYTHON_RELEASE" >> "$GITHUB_OUTPUT"
8289
8390 build-source :
8491 runs-on : ubuntu-24.04
@@ -126,9 +133,7 @@ jobs:
126133 timeout-minutes : 45
127134 needs :
128135 - verify-input
129-
130- # Docs aren't built for alpha or beta releases.
131- if : (!(contains(needs.verify-input.outputs.cpython_release, 'a') || contains(needs.verify-input.outputs.cpython_release, 'b')))
136+ if : fromJSON(needs.verify-input.outputs.build-docs)
132137 steps :
133138 - name : " Checkout ${{ env.GIT_REMOTE }}/cpython"
134139 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -200,7 +205,7 @@ jobs:
200205 name : build-android (${{ matrix.arch }})
201206 needs :
202207 - verify-input
203- if : fromJSON(needs.verify-input.outputs.cpython_branch) >= 3.14
208+ if : fromJSON(needs.verify-input.outputs.build-android)
204209
205210 strategy :
206211 matrix :
0 commit comments