File tree 2 files changed +6
-7
lines changed 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ jobs:
36
36
- name : Set up Python
37
37
uses : actions/setup-python@v4
38
38
with :
39
- python-version : ' 3.x '
39
+ python-version : ' 3.12 '
40
40
41
41
- name : Verify tag version matches package version
42
42
run : |
43
- pip install twine
43
+ python -m pip install --upgrade pip
44
+ pip install build pytest pytest-cov setuptools_scm twine
44
45
PACKAGE_VERSION=$(python -m setuptools_scm)
45
46
TAG_VERSION=${GITHUB_REF#refs/tags/} # Remove 'refs/tags/' prefix
46
47
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
@@ -53,14 +54,14 @@ jobs:
53
54
env :
54
55
TWINE_USERNAME : __token__
55
56
TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
56
- run : twine upload --repository testpypi dist/*
57
+ run : make all && twine upload --repository testpypi dist/*
57
58
58
59
- name : Publish to PyPI
59
60
if : " !contains(github.ref, 'test')"
60
61
env :
61
62
TWINE_USERNAME : __token__
62
63
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
63
- run : make ci. dist
64
+ run : make dist
64
65
65
66
- name : Create Release
66
67
uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change 3
3
ci : clean install test
4
4
all : ci build version
5
5
6
- dist d : all ci.dist
7
-
8
- ci.dist :
6
+ dist d : all
9
7
scripts/check-version.sh
10
8
twine upload dist/*
11
9
You can’t perform that action at this time.
0 commit comments