Skip to content
Snippets Groups Projects
Commit 937d164e authored by Moul's avatar Moul
Browse files

[enh] #149: Add CI/CD .gitlab-ci.yml

parent 7dc0a1af
No related branches found
No related tags found
No related merge requests found
Pipeline #5844 failed
stages:
- build
- checks
- tests
- publish
image: hub.docker.com/r/nikaro/poetry
.changes: &changes
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- poetry.lock
- bin/silkaj
- silkaj/*.py
- tests/*.py
build:
<<: *changes
stage: build
script:
- poetry install
- poetry build
format:
<<: *changes
stage: checks
script:
- poetry install
- poetry shell
- black --check bin silkaj tests
type:
<<: *changes
stage: checks
script:
- poetry install
- poetry shell
- mypy/pyright
tests:
<<: *changes
stage: tests
script:
- poetry install
- poetry shell
- pytest
- coverage run --source=duniterpy setup.py test
publish:
stage: publish
tags:
when: manual
script:
- poetry install
- poetry publish --build --username duniter --password $PYPI_PASSWORD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment