File tree Expand file tree Collapse file tree 2 files changed +11
-24
lines changed Expand file tree Collapse file tree 2 files changed +11
-24
lines changed Original file line number Diff line number Diff line change @@ -27,29 +27,17 @@ jobs:
27
27
persist-credentials : false
28
28
29
29
- name : Set up Python
30
- uses : actions /setup-python@v5
30
+ uses : astral-sh /setup-uv@v4
31
31
with :
32
+ enable-cache : true
32
33
python-version : ' 3.10'
33
34
34
- - name : Install dependencies
35
- run : |
36
- python -m pip install --upgrade pip
37
- pip install hatch twine # Keep hatch for versioning and building
38
-
39
- - name : Validate version
40
- run : |
41
- version=$(hatch version)
42
- if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
43
- echo "Valid version format"
44
- exit 0
45
- else
46
- echo "Invalid version format"
47
- exit 1
48
- fi
35
+ - name : Sync dependencies from lock file
36
+ run : uv sync --all-groups --all-extras --all-packages
49
37
50
38
- name : Build
51
39
run : |
52
- hatch build
40
+ uv build
53
41
54
42
- name : Store the distribution packages
55
43
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 56
56
ref : ${{ inputs.ref }} # Explicitly define which commit to check out
57
57
persist-credentials : false # Don't persist credentials for subsequent actions
58
58
- name : Set up Python
59
- uses : actions /setup-python@v5
59
+ uses : astral-sh /setup-uv@v4
60
60
with :
61
+ enable-cache : true
61
62
python-version : ${{ matrix.python-version }}
63
+
62
64
- name : Install uv
63
65
uses : astral-sh/setup-uv@v4
64
66
with :
@@ -82,17 +84,14 @@ jobs:
82
84
persist-credentials : false
83
85
84
86
- name : Set up Python
85
- uses : actions/setup-python@v5
86
- with :
87
- python-version : ' 3.10'
88
-
89
- - name : Install uv
90
87
uses : astral-sh/setup-uv@v4
91
88
with :
92
89
enable-cache : true
90
+ python-version : ${{ matrix.python-version }}
91
+
93
92
94
93
- name : Sync dependencies from lock file
95
- run : uv sync --dev
94
+ run : uv sync --all-groups --all-extras --all-packages
96
95
97
96
- name : Run lint
98
97
id : lint
You can’t perform that action at this time.
0 commit comments