Skip to content

Commit

Permalink
chore(ci): use astral-sh/setup-uv action
Browse files Browse the repository at this point in the history
Generated by the task: njzjz-bot/njzjz-bot#9.
  • Loading branch information
njzjz-bot committed Oct 5, 2024
1 parent 8fae7d2 commit 8254b5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- name: Build dist
run: uv tool run --with build[uv] --from build python -m build --installer uv --sdist
- name: Upload release distributions
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 8254b5b

Please sign in to comment.