mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
I got so many warnings about [Node 20 EOL](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/) in the [try](https://github.com/servo/servo/actions/runs/22945103342): > The following actions are running on Node.js 20 and may not work as expected... We avoid touching those actions forked from web-platform-tests. Testing: If this can merge, it is successful. --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
25 lines
751 B
YAML
25 lines
751 B
YAML
name: Setup Python and uv
|
|
inputs:
|
|
python-version-file-path:
|
|
required: false
|
|
description: "Path to the .python-version file"
|
|
default: '.python-version'
|
|
skip-python-setup:
|
|
required: false
|
|
description: "Whether to skip installing python using Github's `setup-python` action"
|
|
default: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
# Use the setup-python action to take advantage of the cache. uv will
|
|
# symlink to this version.
|
|
- name: Setup system python
|
|
if: ${{ inputs.skip-python-setup != 'true' }}
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version-file: ${{ inputs.python-version-file-path }}
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
version: "0.9.21"
|