2023-12-12 20:58:01 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
2023-12-13 08:31:35 +00:00
|
|
|
variables:
|
|
|
|
- &pytest_base
|
2023-12-13 08:43:19 +00:00
|
|
|
group: pytest
|
2023-12-12 20:58:01 +00:00
|
|
|
commands:
|
|
|
|
- git fetch --depth=2147483647
|
|
|
|
- pip install poetry -qq
|
|
|
|
- poetry install --all-extras --no-root
|
|
|
|
- poetry run pytest
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|
2023-12-13 08:31:35 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
pyton-312:
|
2023-12-13 08:43:19 +00:00
|
|
|
image: docker.io/library/python:3.12
|
2023-12-13 08:31:35 +00:00
|
|
|
<<: *pytest_base
|
|
|
|
|
|
|
|
pyton-311:
|
2023-12-13 08:43:19 +00:00
|
|
|
image: docker.io/library/python:3.11
|
2023-12-13 08:31:35 +00:00
|
|
|
<<: *pytest_base
|
|
|
|
|
|
|
|
pyton-310:
|
2023-12-13 08:43:19 +00:00
|
|
|
image: docker.io/library/python:3.10
|
2023-12-13 08:31:35 +00:00
|
|
|
<<: *pytest_base
|
|
|
|
|
|
|
|
pyton-39:
|
2023-12-13 08:43:19 +00:00
|
|
|
image: docker.io/library/python:3.9
|
2023-12-13 08:31:35 +00:00
|
|
|
<<: *pytest_base
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- lint
|