41 lines
869 B
YAML
41 lines
869 B
YAML
---
|
|
|
|
image: archlinux:latest
|
|
|
|
stages:
|
|
- check
|
|
- test
|
|
- publish
|
|
|
|
linter:
|
|
before_script:
|
|
- pacman --noconfirm -Syu --needed python-poetry python-tox
|
|
script:
|
|
- tox -e linter
|
|
stage: check
|
|
|
|
coverage:
|
|
before_script:
|
|
- pacman --noconfirm -Syu --needed python-poetry python-tox
|
|
script:
|
|
- tox -e coverage
|
|
stage: test
|
|
|
|
system_test:
|
|
before_script:
|
|
- pacman --noconfirm -Syu --needed python-pydantic python-dotenv python-pyxdg python-email-validator python-torrentool python-gitlab python-orjson python-prometheus_client python-toml python-pytest
|
|
script:
|
|
- pytest -vv tests/ -m "not integration"
|
|
stage: test
|
|
|
|
pypi_publish:
|
|
before_script:
|
|
- pacman --noconfirm -Syu --needed python-poetry
|
|
rules:
|
|
- if: '$POETRY_PYPI_TOKEN_PYPI && $CI_COMMIT_TAG'
|
|
script:
|
|
- poetry publish --build
|
|
stage: publish
|
|
tags:
|
|
- secure
|