File tree Expand file tree Collapse file tree 7 files changed +52
-75
lines changed Expand file tree Collapse file tree 7 files changed +52
-75
lines changed Original file line number Diff line number Diff line change
1
+ name : Sync UV
2
+ description : " Setup and sync UV environment"
3
+
4
+ runs :
5
+ using : " composite"
6
+ steps :
7
+ - name : " Install uv"
8
+ uses : astral-sh/setup-uv@v6
9
+ with :
10
+ enable-cache : true
11
+
12
+ - name : " Build groups args"
13
+ id : groups
14
+ run : |
15
+ args=""
16
+ if [ -n "${{ inputs.groups }}" ]; then
17
+ IFS=',' read -ra GROUPS <<< "${{ inputs.groups }}"
18
+ for group in "${GROUPS[@]}"; do
19
+ group=$(echo "$group" | xargs)
20
+ [ -n "$group" ] && args="$args --group $(printf %q "$group")"
21
+ done
22
+ fi
23
+ echo "value=$args" >> $GITHUB_OUTPUT
24
+
25
+ - name : " Build extras args"
26
+ id : extras
27
+ run : |
28
+ args=""
29
+ if [ -n "${{ inputs.extras }}" ]; then
30
+ IFS=',' read -ra EXTRAS <<< "${{ inputs.extras }}"
31
+ for extra in "${EXTRAS[@]}"; do
32
+ extra=$(echo "$extra" | xargs)
33
+ [ -n "$extra" ] && args="$args --extra $(printf %q "$extra")"
34
+ done
35
+ fi
36
+ echo "value=$args" >> $GITHUB_OUTPUT
37
+
38
+ - name : " Run UV sync"
39
+ run : |
40
+ cmd="uv sync${{ steps.groups.outputs.value }}${{ steps.extras.outputs.value }}"
41
+ echo "Executing: $cmd"
42
+ eval "$cmd"
43
+ env :
44
+ UV_NO_PYTHON_DOWNLOADS : ${{ inputs.no_python_downloads && '1' || '' }}
45
+ UV_FROZEN : ${{ inputs.frozen && '1' || '' }}
Original file line number Diff line number Diff line change 42
42
with :
43
43
python-version : " 3.13"
44
44
- name : " Setup UV"
45
- uses : ./.github/workflows/sync-uv.yml
45
+ uses : ./.github/actions/uv-setup
46
46
with :
47
47
groups : ' dev,docs'
48
48
- name : " Check Links"
Original file line number Diff line number Diff line change 21
21
with :
22
22
python-version : " 3.13"
23
23
- name : " Setup UV"
24
- uses : ./.github/workflows/sync-uv.yml
24
+ uses : ./.github/actions/uv-setup
25
25
with :
26
26
groups : ' dev,docs'
27
27
extras : ' speed,voice'
Original file line number Diff line number Diff line change 26
26
with :
27
27
python-version : " 3.13"
28
28
- name : " Setup UV"
29
- uses : ./.github/workflows/sync-uv.yml
29
+ uses : ./.github/actions/uv-setup
30
30
with :
31
31
groups : ' dev,docs'
32
32
extras : ' speed,voice'
Original file line number Diff line number Diff line change 34
34
- name : " Checkout Repository"
35
35
uses : actions/checkout@v5
36
36
- name : " Setup UV"
37
- uses : ./.github/workflows/sync-uv.yml
37
+ uses : ./.github/actions/uv-setup
38
38
with :
39
39
groups : ' dev'
40
40
- name : " Run codespell"
51
51
with :
52
52
python-version : " 3.13"
53
53
- name : " Setup UV"
54
- uses : ./.github/workflows/sync-uv.yml
54
+ uses : ./.github/actions/uv-setup
55
55
with :
56
56
groups : ' dev'
57
57
- name : " Run ruff linter check"
69
69
with :
70
70
python-version : " 3.13"
71
71
- name : " Setup UV"
72
- uses : ./.github/workflows/sync-uv.yml
72
+ uses : ./.github/actions/uv-setup
73
73
with :
74
74
groups : ' dev'
75
75
- name : " Setup cache"
Original file line number Diff line number Diff line change 25
25
with :
26
26
python-version : " 3.13"
27
27
- name : " Setup UV"
28
- uses : ./.github/workflows/sync-uv.yml
28
+ uses : ./.github/actions/uv-setup
29
29
with :
30
30
groups : ' dev,ci'
31
31
- name : " Run guild features sync"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments