diff options
author | Mukilan Thiyagarajan <mukilan@igalia.com> | 2024-12-16 17:48:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-16 12:18:28 +0000 |
commit | 6be403d8b46a6974ce79b52117339d10961047df (patch) | |
tree | a9f5c777dafbbedc5af9e8c676a6a6ec99abd91f /.github/actions/setup-python | |
parent | 88a35b3cc99b6bf47099f1551b6a2349bba76c15 (diff) | |
download | servo-6be403d8b46a6974ce79b52117339d10961047df.tar.gz servo-6be403d8b46a6974ce79b52117339d10961047df.zip |
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>
Diffstat (limited to '.github/actions/setup-python')
-rw-r--r-- | .github/actions/setup-python/action.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml index 9889c517e6b..4edd07d9ffc 100644 --- a/.github/actions/setup-python/action.yml +++ b/.github/actions/setup-python/action.yml @@ -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: |