ci: create a GitHub Release on tag (#12) #19
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| # On-demand trigger: GitHub refuses to re-run a run older than 30 days, and | |
| # both jobs relock against live PyPI, so drift is only observable on a fresh run. | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: pipx install poetry | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: poetry | |
| # Relock first: poetry.lock is stale vs pyproject.toml (the merged spec | |
| # bump did not regenerate it). | |
| - run: poetry lock | |
| - run: poetry install | |
| - run: poetry build | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: pipx install poetry | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: poetry | |
| # Relock first: poetry.lock is stale vs pyproject.toml (the merged spec | |
| # bump did not regenerate it). | |
| - run: poetry lock | |
| - run: poetry install | |
| # No pytest suite yet; import-smoke the built package so CI fails fast | |
| # on broken codegen/spec dependencies. | |
| - run: poetry run python -c "import utxorpc" |