-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from yasuhito/feature/refactor-workflows
ci: split CI workflow and add ruff format
- Loading branch information
Showing
4 changed files
with
104 additions
and
33 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,32 @@ | ||
name: Install Python with uv | ||
description: | | ||
This GitHub Action installs Python using the uv tool. | ||
It pins the specified Python version, caches uv files, and installs dependencies. | ||
inputs: | ||
python-version: | ||
description: Python version | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install uv | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
shell: bash | ||
|
||
- name: Pin Python Version | ||
run: | | ||
export PYTHONUNBUFFERED=True | ||
uv python pin ${{ inputs.python-version }} | ||
shell: bash | ||
|
||
- uses: actions/cache@v4 | ||
id: cache-uv | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-python-${{ inputs.python-version }}-uv | ||
|
||
- name: Install Dependencies | ||
run: uv sync | ||
shell: bash |
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
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