-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add uv support * feat: add uv action * use uv caching, drop cruft --------- Co-authored-by: Samsul <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: "weekly" |
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,40 @@ | ||
name: "Install UV and project" | ||
description: "Install and cache UV" | ||
author: "@grizz" | ||
|
||
inputs: | ||
python-version: | ||
description: "Python version" | ||
required: false | ||
default: 3.x | ||
|
||
outputs: | ||
uv-path: | ||
description: "Path to uv environment" | ||
value: ${{ steps.get-venv-path.outputs.venv-path }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Get Python version | ||
shell: bash | ||
run: | | ||
echo "PYTHON_VERSION=$(python --version | awk '{ print $NF }')" >> $GITHUB_ENV | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Get virtualenv path | ||
shell: bash | ||
run: echo "VENV_PATH=$(python -c 'import sys; print(sys.prefix)')" >> $GITHUB_ENV | ||
|
||
- name: Check cache and install dependencies | ||
shell: bash | ||
run: uv sync --all-extras --dev |