spans only schemas #394
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
jobs: | |
dist: | |
name: Create wheel and source distribution | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- run: make build | |
- uses: actions/upload-artifact@v2 | |
if: github.event_name != 'pull_request' | |
with: | |
name: ${{ github.sha }} | |
path: dist/* | |
# validate that the built wheel is actually importable | |
- run: python -m venv /tmp/venv | |
- run: /tmp/venv/bin/pip install dist/*.whl | |
- run: /tmp/venv/bin/python -c 'import sentry_kafka_schemas' |