Skip to content

Commit

Permalink
twine check in release process
Browse files Browse the repository at this point in the history
This commit adds twine check for each package, before publishing it.
With this change, we will avoid problems with publishing the packages in
the future.

Reference: avocado-framework#5713
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja committed Oct 16, 2023
1 parent 86a6f3e commit c0286cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Build tarballs and wheels
run: make -f Makefile.gh build-wheel
run: make -f Makefile.gh build-wheel check-wheel
- name: Save tarballs and wheels as artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
github_token: ${{ secrets.RELEASE_TOKEN }}
branch: ${{ github.ref }}
- name: Build wheel
run: make -f Makefile.gh build-wheel
run: make -f Makefile.gh build-wheel check-wheel
- name: Save wheel as artifact
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions Makefile.gh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ build-wheel: pip
fi;\
done

check-wheel: build-wheel
$(PYTHON) -m pip install twine
twine check ./PYPI_UPLOAD/*

build-egg:
if test ! -d EGG_UPLOAD; then mkdir EGG_UPLOAD; fi
$(PYTHON) setup.py bdist_egg -d EGG_UPLOAD
Expand Down

0 comments on commit c0286cc

Please sign in to comment.