Skip to content

Commit

Permalink
Improve PyPI deployment debuggability
Browse files Browse the repository at this point in the history
Since it doesn't work.
  • Loading branch information
walles committed Feb 28, 2024
1 parent 8c37f9b commit 533d6eb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0 # For getting tags from the repo
- name: Print current revision
run: |
git describe --dirty
- name: Cache .tox directory
uses: actions/cache@v3
with:
Expand All @@ -49,10 +52,19 @@ jobs:
run: |
. ./env/bin/activate
pip install tox==${{ env.TOX_VERSION }}
- name: Prevent 0.0.0 releases
run: |
tox -e version.py
cat px/version.py
! grep '0.0.0' px/version.py
- name: Run tox in our virtualenv
run: |
. ./env/bin/activate
tox
- name: Print debug info
run: |
ls dist/
! ls dist/ | grep '0.0.0'
#
# Wheel created, publish it!
Expand Down

0 comments on commit 533d6eb

Please sign in to comment.