mirror of
https://github.com/servo/servo.git
synced 2025-08-25 07:08:21 +01:00
The path to `.python-version` used by our setup-python action is relative to the current working directory, which is not the servo repo when WPT Export job runs. Fixes #34639. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
24 lines
754 B
YAML
24 lines
754 B
YAML
name: Setup Python and uv
|
|
inputs:
|
|
python-version-file-path:
|
|
required: false
|
|
description: "Path to the 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@v5
|
|
with:
|
|
python-version-file: ${{ inputs.python-version-file-path }}
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
with:
|
|
version: "0.5.6"
|