Skip to content

Commit

Permalink
chore: add pypi install to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAcoustics committed Nov 6, 2024
1 parent 0e0429f commit 69afe12
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
new_version: ${{ steps.release.outputs.new_version }}
suffix: ${{ steps.release.outputs.suffix }}
tag_name: ${{ steps.release.outputs.tag_name }}
version_str: ${{ steps.release.outputs.version_str }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -108,6 +109,33 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Install soundscapy from TestPyPI
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
retry_wait_seconds: 30
command: python -m pip install "soundscapy==${{ needs.details.outputs.version_str }}"
- run: python -c "import soundscapy; print(soundscapy.__version__)"

- name: Install soundscapy[audio] from TestPyPI
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
retry_wait_seconds: 30
command: python -m pip install "soundscapy[audio]==${{ needs.details.outputs.version_str }}"
- run: python -c "import soundscapy; print(soundscapy.__version__); from soundscapy import Binaural"

- name: Install soundscapy[all] from TestPyPI
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
retry_wait_seconds: 30
command: python -m pip install "soundscapy[all]==${{ needs.details.outputs.version_str }}"
- run: python -c "import soundscapy; print(soundscapy.__version__); from soundscapy import Binaural"

github_release:
name: Create GitHub Release
needs: [setup_and_build, details, tests-pass, tutorial-tests-pass]
Expand Down

0 comments on commit 69afe12

Please sign in to comment.