[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 - test
- build - build
test: .before_script_template: &test
stage: test before_script:
script:
- apt-get update && apt-get -y install python3-venv - apt-get update && apt-get -y install python3-venv
- python3 -V # Print out python version for debugging - python3 -V # Print out python version for debugging
- pip3 install pipenv - pip3 install pipenv
- pipenv install --dev --skip-lock - 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 - pipenv run pytest --version
- PYTHONPATH=./tests/ pipenv run pytest -v ./tests - PYTHONPATH=./tests/ pipenv run pytest -v ./tests
- pipenv run halfapi --version - pipenv run halfapi --version