Skip to content

Remove test phase from publish #32

Remove test phase from publish

Remove test phase from publish #32

Workflow file for this run

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