fix(build): run tests on python 3.8 and 3.9 (#354)
This commit is contained in:
parent
59075a752a
commit
08a23eda65
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue