10
10
permissions :
11
11
contents : read
12
12
13
- env :
14
- UV_SYSTEM_PYTHON : 1
15
-
16
13
jobs :
17
14
test :
18
15
runs-on : ${{ matrix.os }}
19
16
strategy :
20
17
fail-fast : false
21
18
matrix :
22
- python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 ", "3.13 "]
19
+ python-version : ["3.9 ", "3.10 ", "3.11 ", "3.12 ", "3.13 ", "3.13t "]
23
20
os : [macOS-latest, ubuntu-latest, windows-latest]
24
21
25
22
steps :
26
23
- name : Checkout
27
24
uses : actions/checkout@v4
28
- - name : Set Up Python ${{ matrix.python-version }}
29
- uses : actions/setup-python@v5
25
+ - uses : astral-sh/setup-uv@v6
30
26
with :
27
+ enable-cache : true
28
+ cache-dependency-glob : pyproject.toml
29
+ cache-suffix : ${{ matrix.python-version }}
31
30
python-version : ${{ matrix.python-version }}
32
- allow-prereleases : true
33
- - uses : hynek/setup-cached-uv@v2
34
- with :
35
- cache-dependency-path : pyproject.toml
31
+ activate-environment : true
36
32
- name : Install
37
33
run : make EXTRAS=dev install
38
34
- name : Test
@@ -45,30 +41,30 @@ jobs:
45
41
runs-on : ubuntu-latest
46
42
steps :
47
43
- uses : actions/checkout@v4
48
- - uses : actions /setup-python@v5
44
+ - uses : astral-sh /setup-uv@v6
49
45
with :
50
- python-version : ' 3.12 '
51
- - uses : hynek/setup-cached-uv@v2
52
- with :
53
- cache-dependency-path : pyproject.toml
46
+ enable-cache : true
47
+ cache-dependency-glob : pyproject.toml
48
+ python-version : " 3.13 "
49
+ activate-environment : true
54
50
- name : Install
55
51
run : make install
56
52
- name : Build
57
53
run : python -m build
58
54
- name : Upload
59
- uses : actions/upload-artifact@v3
55
+ uses : actions/upload-artifact@v4
60
56
with :
61
57
name : sdist
62
58
path : dist
63
-
59
+
64
60
publish :
65
61
needs : build
66
62
runs-on : ubuntu-latest
67
63
if : startsWith(github.ref, 'refs/tags/v')
68
64
permissions :
69
65
id-token : write
70
66
steps :
71
- - uses : actions/download-artifact@v3
67
+ - uses : actions/download-artifact@v4
72
68
with :
73
69
name : sdist
74
70
path : dist
0 commit comments