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
This commit is contained in:
Ferdinand Thiessen 2021-12-21 22:58:04 +01:00
parent aaec6b43ae
commit ddd1957085
2 changed files with 19 additions and 1 deletions
.woodpecker

View File

@ -1,6 +1,6 @@
pipeline: pipeline:
lint: lint:
image: python:alpine image: python:slim
commands: commands:
- pip install black - pip install black
- black --check --line-length 120 --target-version=py37 . - black --check --line-length 120 --target-version=py37 .

18
.woodpecker/test.yml Normal file
View File

@ -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