Skip to content
Snippets Groups Projects

Add test job in CI

Merged Yoann Schneider requested to merge add-test-ci into main
1 file
+ 29
1
Compare changes
  • Side-by-side
  • Inline
+ 29
1
@@ -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
Loading