Skip to content

Commit 13fa620

Browse files
committed
Adjustments to github actions
1 parent 79f115c commit 13fa620

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
ci: clean install test
44
all: 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

0 commit comments

Comments
 (0)