Fix min_constraint bug in _parse_range #2
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: Publish | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build the package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Build a binary wheel and a source tarball | |
| run: uv build | |
| - name: Upload dist directory | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: dist | |
| path: dist | |
| publish: | |
| name: Publish the package | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Print ref | |
| run: echo ${{ github.ref }} | |
| - name: Download all workflow run artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: dist | |
| path: dist | |
| - name: Publish package to TestPyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ | |
| skip-existing: true | |
| - name: Install uv if commit is tagged | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Publish package to PyPI if commit is tagged | |
| # Publish only tagged commits | |
| if: startsWith(github.ref, 'refs/tags') | |
| run: uv publish --verbose |