Remove test phase from publish #32
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 to PyPI | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| publish-pypi: | |
| name: Publish to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Configure Poetry for PyPI | |
| run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
| - name: Install dependencies | |
| run: poetry install --no-root | |
| - name: Ruff | |
| run: poetry run ruff check | |
| - name: Mypy | |
| run: poetry run mypy | |
| - name: Build | |
| run: poetry build | |
| - name: Publish to PyPI | |
| run: poetry publish |