зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-30 05:26:15 +02:00
- 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.
28 строки
516 B
YAML
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
|