From 223c8edf1c105f7f8c8db73c08a4f43c14d0147d Mon Sep 17 00:00:00 2001 From: omicron Date: Tue, 24 Oct 2023 01:07:23 +0200 Subject: [PATCH] Add CD/CI for testing --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c019cf8 --- /dev/null +++ b/.gitlab-ci.yml @@ -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