File tree Expand file tree Collapse file tree 2 files changed +34
-18
lines changed Expand file tree Collapse file tree 2 files changed +34
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Build
2
+ on : pull_request
3
+
4
+ jobs :
5
+ twinecheck :
6
+ name : twinecheck
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - name : Set up Python
11
+ uses : actions/setup-python@v2
12
+ with :
13
+ python-version : 3.9
14
+ - name : Install dependencies
15
+ run : |
16
+ python -m pip install --upgrade pip
17
+ python -m pip install -U setuptools setuptools_scm wheel twine
18
+ - name : Build and check
19
+ run : |
20
+ python setup.py sdist bdist_wheel
21
+ twine check dist/*
Original file line number Diff line number Diff line change 4
4
tags :
5
5
- ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6
6
7
- name : Publish Python distributions to PyPI and TestPyPI
7
+ name : Publish distributions to PyPI
8
8
9
9
jobs :
10
10
build-and-publish :
11
11
name : Build and Publish
12
- runs-on : ubuntu-18.04
12
+ runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@master
15
- - name : Set up Python 3.7
15
+ - name : Set up Python 3.9
16
16
uses : actions/setup-python@v1
17
17
with :
18
- python-version : 3.7
19
- - name : Install pypa/build
20
- run : >-
21
- python -m
22
- pip install
23
- build
24
- --user
25
- - name : Build source tarball
26
- run : >-
27
- python -m
28
- build
29
- --sdist
30
- --outdir dist/
31
- .
18
+ python-version : 3.9
19
+ - name : Install dependencies
20
+ run : |
21
+ python -m pip install --upgrade pip
22
+ python -m pip install -U setuptools setuptools_scm wheel twine
23
+ - name : Build and check source tarball
24
+ run : python setup.py sdist bdist_wheel
25
+ - name : Twine check
26
+ run : twine check dist/*
32
27
- name : Publish distribution to PyPI
33
28
if : startsWith(github.ref, 'refs/tags')
34
- uses : pypa/gh-action-pypi-publish@master
29
+ uses : pypa/gh-action-pypi-publish@release/v1
35
30
with :
36
31
password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments