1
0
Fork 0

fix(build): run tests on python 3.8 and 3.9 (#354)

This commit is contained in:
Sean Sube 2023-05-05 18:39:38 -05:00
parent 59075a752a
commit 08a23eda65
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 39 additions and 10 deletions

View File

@ -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