File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ jobs:
3636 - name : Set up Python
3737 uses : actions/setup-python@v4
3838 with :
39- python-version : ' 3.x '
39+ python-version : ' 3.12 '
4040
4141 - name : Verify tag version matches package version
4242 run : |
43- pip install twine
43+ python -m pip install --upgrade pip
44+ pip install build pytest pytest-cov setuptools_scm twine
4445 PACKAGE_VERSION=$(python -m setuptools_scm)
4546 TAG_VERSION=${GITHUB_REF#refs/tags/} # Remove 'refs/tags/' prefix
4647 if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
@@ -53,14 +54,14 @@ jobs:
5354 env :
5455 TWINE_USERNAME : __token__
5556 TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
56- run : twine upload --repository testpypi dist/*
57+ run : make all && twine upload --repository testpypi dist/*
5758
5859 - name : Publish to PyPI
5960 if : " !contains(github.ref, 'test')"
6061 env :
6162 TWINE_USERNAME : __token__
6263 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
63- run : make ci. dist
64+ run : make dist
6465
6566 - name : Create Release
6667 uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change 33ci : clean install test
44all : ci build version
55
6- dist d : all ci.dist
7-
8- ci.dist :
6+ dist d : all
97 scripts/check-version.sh
108 twine upload dist/*
119
You can’t perform that action at this time.
0 commit comments