2020-08-18 15:39:34 +00:00
|
|
|
---
|
|
|
|
image: python
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
- release
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apt update
|
2024-04-27 08:10:45 +00:00
|
|
|
- env DEBIAN_FRONTEND=noninteractive apt install --yes --quiet python3-dev libldap2-dev libsasl2-dev libssl-dev slapd ldap-utils python3-poetry
|
2023-08-13 11:16:42 +00:00
|
|
|
- poetry config virtualenvs.in-project true
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .venv
|
2020-08-18 15:39:34 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
style:
|
2023-11-01 19:22:26 +00:00
|
|
|
image: python:3.12
|
2021-12-20 22:57:27 +00:00
|
|
|
stage: test
|
2023-08-13 11:16:42 +00:00
|
|
|
script:
|
|
|
|
- pip install pre-commit
|
|
|
|
- pre-commit run --all-files --show-diff-on-failure
|
2021-12-20 22:57:27 +00:00
|
|
|
|
2021-11-17 10:11:20 +00:00
|
|
|
python310:
|
|
|
|
image: python:3.10
|
|
|
|
stage: test
|
2023-08-13 11:16:42 +00:00
|
|
|
script:
|
2023-08-16 15:14:11 +00:00
|
|
|
- poetry install --extras all
|
2023-08-13 11:16:42 +00:00
|
|
|
- poetry run pytest
|
2021-11-17 10:11:20 +00:00
|
|
|
|
2022-11-01 10:49:26 +00:00
|
|
|
python311:
|
|
|
|
image: python:3.11
|
|
|
|
stage: test
|
2023-08-13 11:16:42 +00:00
|
|
|
script:
|
2023-08-16 15:14:11 +00:00
|
|
|
- poetry install --extras all
|
2023-08-13 11:16:42 +00:00
|
|
|
- poetry run pytest
|
2022-11-01 10:49:26 +00:00
|
|
|
|
2023-11-01 19:22:26 +00:00
|
|
|
python312:
|
|
|
|
image: python:3.12
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- poetry install --extras all
|
|
|
|
- poetry run pytest
|
|
|
|
|
2023-08-13 11:49:26 +00:00
|
|
|
minversions:
|
2024-09-20 07:08:45 +00:00
|
|
|
image: python:3.10
|
2023-08-13 11:49:26 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2024-05-13 12:18:36 +00:00
|
|
|
- sed -i -E 's/"(\^|>=)([0-9\.]+)([^,]*)"/"==\2"/' pyproject.toml
|
2023-08-13 12:00:00 +00:00
|
|
|
- sed -i -E 's/python = "==/python = "^/' pyproject.toml
|
2023-08-13 12:17:46 +00:00
|
|
|
- poetry lock
|
2023-08-16 15:14:11 +00:00
|
|
|
- poetry install --extras all
|
2023-08-13 11:49:26 +00:00
|
|
|
- poetry run pytest
|
|
|
|
|
2020-11-06 10:44:25 +00:00
|
|
|
doc:
|
2023-11-01 19:22:26 +00:00
|
|
|
image: python:3.12
|
2020-11-06 10:44:25 +00:00
|
|
|
stage: test
|
2023-08-13 11:16:42 +00:00
|
|
|
script:
|
|
|
|
- poetry install --only doc
|
|
|
|
- poetry run sphinx-build doc build/sphinx/html
|
2020-11-06 10:44:25 +00:00
|
|
|
|
2020-08-19 07:18:38 +00:00
|
|
|
coverage:
|
2023-11-01 19:22:26 +00:00
|
|
|
image: python:3.12
|
2020-08-19 07:18:38 +00:00
|
|
|
stage: test
|
2020-11-23 15:47:54 +00:00
|
|
|
allow_failure: true
|
2020-08-19 07:24:07 +00:00
|
|
|
script:
|
2023-08-13 11:16:42 +00:00
|
|
|
- pip install coveralls pyyaml tomli
|
2023-08-16 15:14:11 +00:00
|
|
|
- poetry install --extras all
|
2023-08-13 11:16:42 +00:00
|
|
|
- poetry run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered -n auto
|
2020-08-19 07:24:07 +00:00
|
|
|
- coveralls
|