mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 19:44:21 +01:00
github: Use only Python 3.13 for pull request runs
...speeds up PR cycle time by not running on all the possible Python configurations all the time.
This commit is contained in:
21
.github/workflows/python.yml
vendored
21
.github/workflows/python.yml
vendored
@@ -15,19 +15,28 @@ env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "true"
|
||||
|
||||
jobs:
|
||||
configure-strategy:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
python-versions: ${{ steps.gen-matrix.outputs.python-versions }}
|
||||
steps:
|
||||
- id: gen-matrix
|
||||
run: |
|
||||
if [ ${{ github.event_name }} == "pull_request" ]; then
|
||||
echo "python-versions=[\"3.13\"]" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "python-versions=[\"3.9\",\"3.10\",\"3.11\",\"3.12\",\"3.13\"]" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
test:
|
||||
needs: configure-strategy
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
python-version:
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
- "3.13"
|
||||
python-version: ${{ fromJson(needs.configure-strategy.outputs.python-versions) }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
defaults:
|
||||
|
||||
Reference in New Issue
Block a user