File tree 2 files changed +54
-1
lines changed
2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ concurrency :
9
+ group : build-${{ github.head_ref }}
10
+
11
+ jobs :
12
+ build :
13
+ name : Build wheel and source distribution
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Install uv and set the python version
19
+ uses : astral-sh/setup-uv@v5
20
+ with :
21
+ enable-cache : true
22
+ cache-dependency-glob : " uv.lock"
23
+ version : " 0.5.29"
24
+
25
+ - name : Build
26
+ run : uv build
27
+
28
+ - name : Stash dist artifacts
29
+ uses : actions/upload-artifact@v4
30
+ with :
31
+ name : artifacts
32
+ path : dist/*
33
+ if-no-files-found : error
34
+
35
+ publish :
36
+ name : Publish release
37
+ needs : [build]
38
+ runs-on : ubuntu-latest
39
+
40
+ steps :
41
+ - name : Unstash dist artifacts
42
+ uses : actions/download-artifact@v4
43
+ with :
44
+ name : artifacts
45
+ path : dist
46
+
47
+ - name : Push build artifacts to PyPI
48
+
49
+ with :
50
+ skip_existing : true
51
+ user : __token__
52
+ password : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Test
2
2
on : [push]
3
3
jobs :
4
4
build :
5
- name : continuous-integration
5
+ name : Run pytest
6
6
runs-on : ubuntu-latest
7
7
strategy :
8
8
matrix :
20
20
with :
21
21
enable-cache : true
22
22
cache-dependency-glob : " uv.lock"
23
+ version : " 0.5.29"
23
24
python-version : ${{ matrix.python-version }}
24
25
25
26
- name : Install the project
You can’t perform that action at this time.
0 commit comments