Workflow file for this run
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
| on: | |
| push: | |
| name: Create Release | |
| jobs: | |
| build-and-publish: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@main | |
| - name: Install Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install Dependencies | |
| run: | | |
| uv sync --extra dev | |
| - name: Run tests | |
| run: uv run pytest tests | |
| - name: Build | |
| run: | | |
| uv add build | |
| uv run python -m build | |
| - name: Publish PyPI Package | |
| run: | | |
| uv run twine upload -p ${{ secrets.TEST_PYPI_TOKEN }} --repository testpypi dist/* |