Viginum-DataScientist-6 427a873568 ci: run publish-* workflow on manual GitHub releases only
- This setup is inspired by the setup in github.com/python-poetry/poetry.
- Automatically publishing on tag pushes feels brittle, revert to a manual trigger to nre PyPI releases.
- Move the test step to a new test workflow to ensure it is still run on each commit.
2025-07-29 17:29:20 +02:00

28 строки
516 B
YAML

name: Publish Python distribution to PyPI and TestPyPI
on: push
jobs:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run tests
run:
poetry run pytest