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