File tree 4 files changed +33
-19
lines changed
4 files changed +33
-19
lines changed Original file line number Diff line number Diff line change 30
30
fail-fast : false
31
31
matrix :
32
32
language : [ python ]
33
+ python-version : ['3.11']
33
34
34
35
steps :
35
36
- name : Checkout
@@ -38,15 +39,15 @@ jobs:
38
39
- name : Set up Python
39
40
uses : actions/setup-python@v5
40
41
with :
41
- python-version : 3.11
42
- architecture : x64
43
- cache : ' pip'
44
- cache-dependency-path : |
45
- setup.py
42
+ python-version : ${{ matrix.python-version }}
46
43
47
- - name : Install uv
44
+ - name : Set up uv
48
45
uses : astral-sh/setup-uv@v5
49
46
with :
47
+ cache-dependency-glob : |
48
+ setup.py
49
+ cache-suffix : ${{ matrix.python-version }}
50
+ enable-cache : true
50
51
version : " latest"
51
52
52
53
- name : Initialize CodeQL
Original file line number Diff line number Diff line change @@ -25,16 +25,19 @@ jobs:
25
25
26
26
steps :
27
27
- uses : actions/checkout@v4
28
- - name : Set up Python ${{ matrix.python-version }}
28
+
29
+ - name : Set up Python
29
30
uses : actions/setup-python@v5
30
31
with :
31
32
python-version : ${{ matrix.python-version }}
32
- cache : ' pip'
33
- cache-dependency-path : ' setup.py'
34
33
35
- - name : Install uv
34
+ - name : Set up uv
36
35
uses : astral-sh/setup-uv@v5
37
36
with :
37
+ cache-dependency-glob : |
38
+ setup.py
39
+ cache-suffix : ${{ matrix.python-version }}
40
+ enable-cache : true
38
41
version : " latest"
39
42
40
43
- name : Invoke tests
Original file line number Diff line number Diff line change @@ -6,21 +6,28 @@ on: push
6
6
jobs :
7
7
pypi :
8
8
name : Build & publish package to pypi
9
- runs-on : ubuntu-latest
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ os : ['ubuntu-latest']
14
+ python-version : ['3.11']
10
15
if : startsWith(github.event.ref, 'refs/tags')
11
16
steps :
12
17
- uses : actions/checkout@v4
13
18
14
19
- name : Set up Python
15
20
uses : actions/setup-python@v5
16
21
with :
17
- python-version : ' 3.11'
18
- cache : ' pip'
19
- cache-dependency-path : ' setup.py'
22
+ python-version : ${{ matrix.python-version }}
20
23
21
- - name : Install uv
24
+ - name : Set up uv
22
25
uses : astral-sh/setup-uv@v5
23
26
with :
27
+ cache-dependency-glob : |
28
+ setup.py
29
+ cache-suffix : ${{ matrix.python-version }}
30
+ enable-cache : true
24
31
version : " latest"
25
32
26
33
- name : Build package
Original file line number Diff line number Diff line change @@ -40,16 +40,19 @@ jobs:
40
40
41
41
steps :
42
42
- uses : actions/checkout@v4
43
- - name : Set up Python ${{ matrix.python-version }}
43
+
44
+ - name : Set up Python
44
45
uses : actions/setup-python@v5
45
46
with :
46
47
python-version : ${{ matrix.python-version }}
47
- cache : ' pip'
48
- cache-dependency-path : setup.py
49
48
50
- - name : Install uv
49
+ - name : Set up uv
51
50
uses : astral-sh/setup-uv@v5
52
51
with :
52
+ cache-dependency-glob : |
53
+ setup.py
54
+ cache-suffix : ${{ matrix.python-version }}
55
+ enable-cache : true
53
56
version : " latest"
54
57
55
58
- name : Invoke tests
You can’t perform that action at this time.
0 commit comments