Commit 8aacbc29 authored by Moul's avatar Moul

[CI] #149: Add jobs to test with Python version 3.5, 3.6, and 3.7

- Put this jobs in the tests stage
- Use our built images
- Inherite section for all tests
parent f31b2a7e
stages:
- checks
- tests
- publish
- coverage
image: michalmazurek/python-poetry:3.7.2-slim-stretch
variables:
DOCKER_IMAGE: "registry.duniter.org/docker/python3/poetry"
image: $DOCKER_IMAGE/3.7:latest
.code_changes: &code_changes
only:
......@@ -41,13 +45,28 @@ format:
- poetry install
- poetry run mypy/pyright
tests:
.tests: &tests
<<: *changes
stage: checks
script:
- apt update
- apt install --yes libsodium18
stage: tests
before_script:
- poetry install
tests-3.5:
<<: *tests
image: $DOCKER_IMAGE/3.5:latest
script:
- poetry run pytest
tests-3.6:
<<: *tests
image: $DOCKER_IMAGE/3.6:latest
script:
- poetry run pytest
tests-3.7:
<<: *tests
image: $DOCKER_IMAGE/3.7:latest
script:
- poetry run pytest --cov silkaj --cov-report html:cov_html
- poetry run coverage-badge -o cov_html/coverage.svg
artifacts:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment