Skip to content
Snippets Groups Projects
Commit 5298fbb7 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Add test job in CI

parent 3f29affd
No related branches found
No related tags found
1 merge request!22Add test job in CI
......@@ -4,7 +4,7 @@ stages:
- deploy
lint:
image: python:3.8
image: python:3.10
stage: test
cache:
......@@ -24,6 +24,34 @@ lint:
script:
- pre-commit run -a
test:
image: python:3.10
stage: test
cache:
paths:
- .cache/pip
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
ARKINDEX_API_SCHEMA_URL: schema.yml
before_script:
- pip install tox
# Download OpenAPI schema from last backend build
- curl https://assets.teklia.com/arkindex/openapi.yml > schema.yml
# Add system deps for opencv
- apt-get update -q
- apt-get install -q -y libgl1
except:
- schedules
script:
- tox
bump-python-deps:
stage: deploy
image: registry.gitlab.com/teklia/devops:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment