Add CD/CI for testing

This commit is contained in:
2023-10-24 01:07:23 +02:00
parent 78047a057f
commit 223c8edf1c

18
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,18 @@
before_script:
- python -m venv venv
- source venv/bin/activate
- pip install --editable ./[dev]
test:
parallel:
matrix:
- PY_IMAGE:
- python:latest
- python:3.10-slim
- python:3.11-slim
image: $PY_IMAGE
coverage: /^TOTAL.*? ([0-9]+\.[0-9]+%)$/
script:
- py.test --cov --cov-report=term
- black --check ./d2warehouse
- flake8 ./d2warehouse