[ci/cd] parallel tests on multiple python versions

This commit is contained in:
Maxime Alves LIRMM 2022-07-06 08:12:39 +02:00
parent 3ec6d7514e
commit 2d47789f61
1 changed files with 11 additions and 3 deletions

View File

@ -31,13 +31,21 @@ stages:
- test
- build
test:
stage: test
script:
.before_script_template: &test
before_script:
- apt-get update && apt-get -y install python3-venv
- python3 -V # Print out python version for debugging
- pip3 install pipenv
- pipenv install --dev --skip-lock
test:
image: python:${PYVERSION}-bullseye
stage: test
<<: *test
parallel:
matrix:
- PYVERSION: ["3.6", "3.7", "3.8", "3.9", "3.10"]
script:
- pipenv run pytest --version
- PYTHONPATH=./tests/ pipenv run pytest -v ./tests
- pipenv run halfapi --version