File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ jobs:
15
15
name : Code QA
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - run : pip install black flake8 isort
20
- - run : black --version
21
- - run : isort --version
22
- - run : flake8 --version
23
- - run : isort --check .
24
- - run : black --check .
25
- - run : flake8 .
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-python@v5
20
+ with :
21
+ python-version : 3.x
22
+ -
uses :
pre-commit/[email protected]
23
+ env :
24
+ SKIP : no-commit-to-branch
26
25
27
26
checks :
28
27
if : ${{ github.event_name == 'release' }}
@@ -66,24 +65,17 @@ jobs:
66
65
- name : Set up Python
67
66
uses : actions/setup-python@v2
68
67
with :
69
- python-version : ' 3.10'
70
-
71
- - name : Check that tag version matches code version
72
- run : |
73
- tag=${GITHUB_REF#refs/tags/}
74
- version=$(python setup.py --version)
75
- echo 'tag='$tag
76
- echo "version file="$version
77
- test "$tag" == "$version"
68
+ python-version : ' 3.x'
78
69
79
70
- name : Install dependencies
80
71
run : |
81
72
python -m pip install --upgrade pip
82
- pip install setuptools wheel twine
73
+ pip install build wheel twine
83
74
- name : Build and publish
84
75
env :
85
76
TWINE_USERNAME : __token__
86
77
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
87
78
run : |
88
- python setup.py sdist
79
+ python -m pip install --upgrade build
80
+ python -m build
89
81
twine upload dist/*
You can’t perform that action at this time.
0 commit comments