From 08a23eda65de52dc72ed39cfc49e35a7c73c9c7a Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Fri, 5 May 2023 18:39:38 -0500 Subject: [PATCH] fix(build): run tests on python 3.8 and 3.9 (#354) --- .gitlab-ci.yml | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91f5fbe4..37e25022 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,15 +54,6 @@ stages: .build-python: extends: - .build-base - image: docker.io/python:3.10 - cache: - key: - files: - - api/requirements/base.txt - - api/requirements/cpu.txt - paths: - - .cache/pip - policy: pull-push variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" interruptible: true @@ -72,10 +63,48 @@ stages: - .build-python cache: {} -build-api-coverage: +build-api-coverage-3.10: extends: - .build-python stage: build + image: docker.io/python:3.10 + cache: + key: python-3-10 + paths: + - .cache/pip + policy: pull-push + script: + - apt-get -y update && apt-get -y install python3-opencv + - cd api + - ${CI_PROJECT_DIR}/common/scripts/make-venv.sh + - make ci + +build-api-coverage-3.9: + extends: + - .build-python + stage: build + image: docker.io/python:3.9 + cache: + key: python-3-9 + paths: + - .cache/pip + policy: pull-push + script: + - apt-get -y update && apt-get -y install python3-opencv + - cd api + - ${CI_PROJECT_DIR}/common/scripts/make-venv.sh + - make ci + +build-api-coverage-3.8: + extends: + - .build-python + stage: build + image: docker.io/python:3.8 + cache: + key: python-3-8 + paths: + - .cache/pip + policy: pull-push script: - apt-get -y update && apt-get -y install python3-opencv - cd api