mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
ci: fix wpt export job (#34640)
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>
This commit is contained in:
parent
88a35b3cc9
commit
6be403d8b4
2 changed files with 7 additions and 1 deletions
6
.github/actions/setup-python/action.yml
vendored
6
.github/actions/setup-python/action.yml
vendored
|
@ -1,5 +1,9 @@
|
|||
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"
|
||||
|
@ -13,7 +17,7 @@ runs:
|
|||
if: ${{ inputs.skip-python-setup != 'true' }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: '.python-version'
|
||||
python-version-file: ${{ inputs.python-version-file-path }}
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
|
|
|
@ -30,6 +30,8 @@ jobs:
|
|||
token: ${{ secrets.WPT_SYNC_TOKEN }}
|
||||
- name: Setup Python
|
||||
uses: ./servo/.github/actions/setup-python
|
||||
with:
|
||||
python-version-file-path: ./servo/.python-version
|
||||
- name: Install requirements
|
||||
run: |
|
||||
uv venv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue