Add NetBSD tests #1005
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: 🚀 Build & release | |
| "on": | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| uses: kdeldycke/repomatic/.github/workflows/release.yaml@dd9067f15dfe8e1f2a4698d203ffc3a404155c89 # v6.22.0 | |
| secrets: | |
| REPOMATIC_PAT: ${{ secrets.REPOMATIC_PAT }} | |
| VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }} | |
| publish-pypi: | |
| name: 🐍 Publish to PyPI (${{ matrix.short_sha }}) | |
| needs: release | |
| # Gate decoupled from the run's overall result: always() lets this job run | |
| # even when an unrelated job (like binary tests) failed the run, and | |
| # package_built confirms the wheel actually built. A wheel that built cleanly | |
| # should still publish to PyPI even when a binary test fails. The | |
| # package_built output is defined in repomatic's reusable release.yaml. | |
| if: >- | |
| always() | |
| && needs.release.outputs.package_built == 'true' | |
| && needs.release.outputs.release_commits_matrix | |
| strategy: | |
| # GitHub evaluates `strategy.matrix` during job setup even when `if:` will | |
| # skip the job. On a non-release push `release_commits_matrix` is the empty | |
| # string, so a bare `fromJSON('')` aborts the whole run with "Unexpected | |
| # value ''". Falling back to an empty `{"include":[]}` matrix expands the | |
| # job to zero runs, so it skips cleanly instead of failing the workflow. | |
| matrix: ${{ fromJSON(needs.release.outputs.release_commits_matrix || '{"include":[]}') }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: kdeldycke/repomatic/.github/actions/publish-pypi@dd9067f15dfe8e1f2a4698d203ffc3a404155c89 # v6.22.0 | |
| with: | |
| artifact-name: ${{ github.event.repository.name }}-${{ matrix.short_sha }} |