DeltaCAT 2.0.0.post7 #129
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
| name: Publish Python distributions to PyPI | |
| on: | |
| release: | |
| types: [published] # triggered whenever a new GitHub release is published | |
| jobs: | |
| build-n-publish: | |
| name: Build and publish Python distributions to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.9" | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run unit tests | |
| run: uv run pytest -m "not integration" | |
| - name: Echo release tag | |
| run: echo ${{ github.ref_name }} | |
| - name: Build | |
| run: uv build | |
| - name: Publish distribution to PyPI | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| verbose: true |