-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
name: Setup Python | ||
description: | ||
|
||
# When updating this file, see the comment in ci.yml about integration test | ||
# runner versions. | ||
runs: | ||
using: composite | ||
steps: | ||
# For the default Python version, the micro version should be different to the | ||
# one used by the runtime, because that's required by the integration tests | ||
# `requires_python` and `marker_python_version`. For all other versions, we let | ||
# the GitHub runner pick a micro version, which will be faster because it's | ||
# locally cached. | ||
- name: Get default Python version | ||
id: python-default | ||
shell: bash | ||
run: | | ||
version=3.8 | ||
if [ $RUNNER_OS = Windows ]; then | ||
echo "command=py -$version" | ||
echo "version=3.8.10" | ||
else | ||
echo "command=python$version" | ||
echo "version=3.8.12" | ||
fi >> $GITHUB_OUTPUT | ||
- uses: actions/[email protected] | ||
with: | ||
# This should include all major.minor versions supported by the runtime, plus | ||
# OLD_BUILD_PYTHON_VERSION, MIN_BUILD_PYTHON_VERSION and | ||
# MAX_BUILD_PYTHON_VERSION from test_gradle_plugin. | ||
# | ||
# For the default Python version, the micro version should be different to the | ||
# one used by the runtime, because that's required by the integration tests | ||
# `requires_python` and `marker_python_version`. For all other versions, we let | ||
# the GitHub runner pick a micro version, which will be faster because it's | ||
# locally cached. | ||
# | ||
# When updating this list, see the comment in ci.yml about integration test | ||
# runner versions. | ||
python-version: | | ||
3.7 | ||
3.8.10 | ||
${{ steps.python-default.outputs.version }} | ||
3.9 | ||
3.10 | ||
3.11 | ||
3.12 | ||
3.13 | ||
allow-prereleases: true | ||
|
||
- name: Set default Python command | ||
id: python-default | ||
shell: bash | ||
run: | | ||
version=$(target/list-versions.py --default) | ||
if [ $RUNNER_OS = Windows ]; then | ||
echo "command=py -$version" | ||
else | ||
echo "command=python$version" | ||
fi >> $GITHUB_OUTPUT | ||
outputs: | ||
python-default: | ||
description: Command to run the default Python version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ defaults: | |
jobs: | ||
|
||
product: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: smorimoto/[email protected] | ||
- uses: actions/[email protected] | ||
|
@@ -73,7 +73,7 @@ jobs: | |
|
||
|
||
docs: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: smorimoto/[email protected] | ||
- uses: actions/[email protected] | ||
|
@@ -105,7 +105,7 @@ jobs: | |
|
||
|
||
gradlePython: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: smorimoto/[email protected] | ||
- uses: actions/[email protected] | ||
|
@@ -123,7 +123,7 @@ jobs: | |
demo: | ||
needs: [product] | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: smorimoto/[email protected] | ||
- uses: actions/[email protected] | ||
|
@@ -166,7 +166,7 @@ jobs: | |
# Runners must support all the Python versions in setup-python/action.yml: see | ||
# https://github.com/actions/python-versions/blob/main/versions-manifest.json. | ||
- os: linux | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
- os: macos | ||
runs-on: macos-13 | ||
- os: windows | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters