Commit 163f017 1 parent 2a2a5c8 commit 163f017 Copy full SHA for 163f017
File tree 3 files changed +28
-10
lines changed
3 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 10
10
- trunk
11
11
12
12
jobs :
13
- setup_uv_defaults :
13
+ setup_uv_default :
14
14
name : setup-uv [default]
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18
- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
17
+ - name : Checkout
18
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
19
+ - name : Set up Python
20
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
19
21
with :
20
22
python-version : " 3.12"
21
23
- name : Set up Python environment
26
28
name : setup-uv [version]
27
29
runs-on : ubuntu-latest
28
30
steps :
29
- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
30
- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
31
+ - name : Checkout
32
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
33
+ - name : Set up Python
34
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
31
35
with :
32
36
python-version : " 3.12"
33
37
- name : Set up Python environment
40
44
name : setup-uv [lockfile]
41
45
runs-on : ubuntu-latest
42
46
steps :
43
- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
44
- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
47
+ - name : Checkout
48
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
49
+ - name : Set up Python
50
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
45
51
with :
46
52
python-version : " 3.12"
47
53
- name : Set up Python environment
51
57
- run : uv --version
52
58
- run : python -m build --version
53
59
60
+ tests_complete :
61
+ name : All tests
62
+ if : always()
63
+ needs : [setup_uv_default, setup_uv_version, setup_uv_lockfile]
64
+ runs-on : ubuntu-latest
65
+
66
+ steps :
67
+ - run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
68
+ - name : Done
69
+ run : exit 0
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ and add both `requirements.in` and `requirements.txt` to the git repository.
17
17
In your action workflow, create a Python environment and then call setup-uv:
18
18
``` yaml
19
19
steps :
20
- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21
- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
20
+ - name : Checkout
21
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22
+ - name : Set up Python
23
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
22
24
with :
23
25
python-version : " 3.12"
24
26
- name : Set up Python environment
Original file line number Diff line number Diff line change 20
20
21
21
- name : Install
22
22
if : ${{ inputs.lockfile != '' }}
23
- run : " uv pip sync -r ${{ inputs.lockfile }} --only-binary :all: --system --reinstall"
23
+ run : " uv pip sync ${{ inputs.lockfile }} --only-binary :all: --system --reinstall"
24
24
shell : bash
You can’t perform that action at this time.
0 commit comments