File tree 1 file changed +26
-12
lines changed
1 file changed +26
-12
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
jobs :
9
+ build :
10
+ name : Build distribution 📦
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v5
17
+ with :
18
+ python-version : " 3.x"
19
+ - name : Install pypa/build
20
+ run : >-
21
+ python3 -m
22
+ pip install
23
+ build
24
+ --user
25
+ - name : Build a binary wheel and a source tarball
26
+ run : python3 -m build
27
+ - name : Store the distribution packages
28
+ uses : actions/upload-artifact@v4
29
+ with :
30
+ name : python-package-distributions
31
+ path : dist/
32
+
9
33
test-run :
10
34
runs-on : ubuntu-latest
11
35
strategy :
37
61
ignore-test-outcome : false
38
62
39
63
steps :
40
- - uses : actions/checkout@v3
64
+ - name : checkout-python-sdist
65
+
41
66
42
67
- name : Set up Python ${{ matrix.python-version }}
43
68
uses : actions/setup-python@v4
@@ -100,16 +125,5 @@ jobs:
100
125
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
101
126
needs : test-run
102
127
steps :
103
- - uses : actions/checkout@v4
104
- - name : Set up Python
105
- uses : actions/setup-python@v5
106
- - name : Install pypa/build
107
- run : >-
108
- python3 -m
109
- pip install
110
- build
111
- --user
112
- - name : Build a binary wheel and a source tarball
113
- run : python3 -m build
114
128
- name : Publish package distributions to PyPI
115
129
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments