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