-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Setup Python UV" | ||
description: "Toolchain setup for Python UV" | ||
|
||
inputs: | ||
sync: | ||
description: "Sync the project" | ||
required: false | ||
default: "true" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.18" | ||
enable-cache: true | ||
|
||
- name: "Setup up Python" | ||
shell: bash | ||
run: uv python install | ||
|
||
- name: Install the project | ||
if: ${{ inputs.sync == 'true' }} | ||
shell: bash | ||
run: uv sync --all-extras --dev -v | ||
env: | ||
MATURIN_PEP517_USE_BASE_PYTHON: "true" | ||
# Keep this constant to avoid pyo3 invalidating itself | ||
PYO3_ENVIRONMENT_SIGNATURE: "cpython3" | ||
|
||
- name: Export Path | ||
shell: bash | ||
run: echo "PATH=$PATH" >> $GITHUB_ENV |