mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01: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
|
name: Setup Python and uv
|
||||||
inputs:
|
inputs:
|
||||||
|
python-version-file-path:
|
||||||
|
required: false
|
||||||
|
description: "Path to the the .python-version file"
|
||||||
|
default: '.python-version'
|
||||||
skip-python-setup:
|
skip-python-setup:
|
||||||
required: false
|
required: false
|
||||||
description: "Whether to skip installing python using Github's `setup-python` action"
|
description: "Whether to skip installing python using Github's `setup-python` action"
|
||||||
|
@ -13,7 +17,7 @@ runs:
|
||||||
if: ${{ inputs.skip-python-setup != 'true' }}
|
if: ${{ inputs.skip-python-setup != 'true' }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version-file: '.python-version'
|
python-version-file: ${{ inputs.python-version-file-path }}
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v4
|
uses: astral-sh/setup-uv@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -30,6 +30,8 @@ jobs:
|
||||||
token: ${{ secrets.WPT_SYNC_TOKEN }}
|
token: ${{ secrets.WPT_SYNC_TOKEN }}
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: ./servo/.github/actions/setup-python
|
uses: ./servo/.github/actions/setup-python
|
||||||
|
with:
|
||||||
|
python-version-file-path: ./servo/.python-version
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
uv venv
|
uv venv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue