File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 8
8
pypi :
9
9
name : Publish to PyPI registry
10
10
environment : release
11
- runs-on : ubuntu-20 .04
11
+ runs-on : ubuntu-22 .04
12
12
13
13
env :
14
14
FORCE_COLOR : 1
15
15
PY_COLORS : 1
16
- TOXENV : packaging
17
16
TOX_PARALLEL_NO_SPINNER : 1
18
17
19
18
steps :
20
- - name : Switch to using Python 3.8 by default
19
+ - name : Switch to using Python 3.9 by default
21
20
uses : actions/setup-python@v4
22
21
with :
23
- python-version : 3.8
22
+ python-version : 3.9
23
+
24
24
- name : Install tox
25
25
run : >-
26
26
python3 -m
27
27
pip install
28
28
--user
29
29
tox
30
+
30
31
- name : Check out src from Git
31
32
uses : actions/checkout@v3
32
33
with :
33
34
fetch-depth : 0 # needed by setuptools-scm
35
+
34
36
- name : Build dists
35
- run : python -m tox
36
- - name : Publish to test.pypi.org
37
- if : >- # "create" workflows run separately from "push" & "pull_request"
38
- github.event_name == 'release'
39
- uses : pypa/gh-action-pypi-publish@master
40
- with :
41
- password : ${{ secrets.testpypi_password }}
42
- repository_url : https://test.pypi.org/legacy/
37
+ run : python -m tox -e pkg
38
+
43
39
- name : Publish to pypi.org
44
40
if : >- # "create" workflows run separately from "push" & "pull_request"
45
41
github.event_name == 'release'
46
- uses : pypa/gh-action-pypi-publish@master
42
+ uses : pypa/gh-action-pypi-publish@release/v1
47
43
with :
48
44
password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments