Skip to content

Commit

Permalink
Added if statement to test install from TestPyPI
Browse files Browse the repository at this point in the history
This if statement prevents a test install from TestPyPI if the PSR action did not create a new release. This is useful because it saves time, as well as prevents errors if no TestPyPI repository yet exists and PSR didn't make a version bump (can happen at the beginning of a project).
  • Loading branch information
ttimbers authored Jan 30, 2024
1 parent 62fdd3a commit ba935ac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
password: {% raw %}${{ secrets.TEST_PYPI_API_TOKEN }}{% endraw %}

- name: Test install from TestPyPI
if: steps.release.outputs.released == 'true'
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
Expand Down

0 comments on commit ba935ac

Please sign in to comment.