Skip to content

Commit

Permalink
Add sanity check before publishing (#7)
Browse files Browse the repository at this point in the history
This PR adds a sanity check to the built wheel before publishing.
  • Loading branch information
ben-z authored Oct 7, 2024
1 parent ea711bb commit 7b352c2
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,32 @@ jobs:
name: build-artifacts
path: dist/

publish:
sanity-check:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: build-artifacts
path: dist/

- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.11'

- name: Install wheel
run: |
pip install dist/*.whl
- name: Run sanity check
run: |
gatrace --help
publish:
runs-on: ubuntu-latest
needs: sanity-check
if: github.event_name == 'release'
steps:
- name: Download artifact
Expand Down

0 comments on commit 7b352c2

Please sign in to comment.