This repository was archived by the owner on Dec 5, 2025. It is now read-only.
chore: improve warning rendering #2811
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: Distribution | |
| on: [push, pull_request] | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: '3.14' | |
| - uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4 | |
| with: | |
| version: 0.9.15 | |
| - name: build | |
| run: uv build | |
| - name: twine | |
| run: uvx twine check dist/* | |
| - name: pydistcheck | |
| run: uvx pydistcheck --inspect dist/* | |
| - name: pyroma | |
| run: uvx pyroma dist/*.tar.gz | |
| - name: check-wheel-contents | |
| run: uvx check-wheel-contents dist/*.whl | |
| - name: check-manifest | |
| run: uvx check-manifest -v | |
| - name: Publish package | |
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
| run: uv publish --trusted-publishing always | |
| permissions: | |
| contents: read |