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:
Mukilan Thiyagarajan 2024-12-16 17:48:28 +05:30 committed by GitHub
parent 88a35b3cc9
commit 6be403d8b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -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:

View file

@ -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