Skip to content

Commit 21fd2f6

Browse files
author
codegen-bot
committed
add setup
1 parent 024de1f commit 21fd2f6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Setup"
2+
description: "Setup tools for run"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
8+
- name: Install UV
9+
if: ${{ steps.skip-workflow.outputs.skip == 'false' }}
10+
uses: astral-sh/setup-uv@v5
11+
id: setup-uv
12+
with:
13+
enable-cache: false
14+
prune-cache: true
15+
version: '0.5.21'
16+
cache-dependency-glob: '**/uv.lock'
17+
18+
- name: Install dependencies
19+
if: ${{ steps.skip-workflow.outputs.skip == 'false' }}
20+
shell: bash
21+
run: |
22+
uv sync --frozen

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
repository: ${{ github.event.pull_request.head.repo.full_name }}
2020
ref: ${{ github.event.pull_request.head.ref }}
2121

22+
- name: Setup backend
23+
id: setup
24+
uses: ./.github/actions/setup
25+
2226
- name: Setup-pre-commit
2327
run: uv tool install pre-commit --with pre-commit-uv --force-reinstall
2428

0 commit comments

Comments
 (0)