-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
34 lines (33 loc) · 861 Bytes
/
action.yml
File metadata and controls
34 lines (33 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Install dependencies with uv'
description: 'Install dependencies using uv'
author: '@ouhammmourachid'
branding:
icon: 'truck'
color: 'blue'
inputs:
python-version:
description: 'The version of Python to use.'
required: false
default: ''
uv-version:
description: 'The version of uv to use.'
required: true
default: 'latest'
extra-args:
description: 'Extra arguments to pass to the `uv sync` command.'
required: false
default: ''
runs:
using: 'composite'
steps:
# Step 1: Set up uv
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ inputs.uv-version }}
enable-cache: true
python-version: ${{ inputs.python-version }}
# Step 2: Install dependencies
- name: Install dependencies
run: uv sync ${{ inputs.extra-args }}
shell: bash