From ddd1957085cfc7337e5f555642f76afb7f550c8d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 21 Dec 2021 22:58:04 +0100 Subject: [PATCH] feat(ci): Added pipeline for tests Add all supported, meaning by flaschengeist, python versions. Use slim image of python instead of alpine, because Pillow does not provide any wheels for musllibc --- .woodpecker/lint.yml | 2 +- .woodpecker/test.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 0be3525..3116a12 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -1,6 +1,6 @@ pipeline: lint: - image: python:alpine + image: python:slim commands: - pip install black - black --check --line-length 120 --target-version=py37 . diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..462bceb --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,18 @@ +pipeline: + install: + image: python:${PYTHON}-slim + commands: + - python -m pip install --upgrade pip + - pip install -v ".[tests]" + test: + image: python:${PYTHON}-slim + commands: + - pytest + + +matrix: + PYTHON: + - 3.10 + - 3.9 + - 3.8 + - 3.7