From 1a900056cf3b5cc53b4c20d9ddc7e7fffd83180a Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sat, 15 May 2021 16:21:48 +0200 Subject: [PATCH] Switched CI to non-tox matrix build --- .woodpecker.yml | 50 +++++++++++++++++-------------------------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 972f9e0..9673933 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,47 +1,31 @@ +matrix: + PYTHON_VERSION: + - 3.6 + - 3.7 + - 3.8 + - 3.9 + pipeline: - test-3.9: + test: group: test - image: python:3.9-alpine + image: python:${PYTHON_VERSION}-alpine pull: true commands: - - pip install -e .[ci] - - tox -e py39 + - pip install -e .[test] + - pytest --cov=app --cov-fail-under=90 tests/ - test-3.8: - group: test - image: python:3.8-alpine - pull: true - commands: - - pip install -e .[ci] - - tox -e py38 - - test-3.7: - group: test - image: python:3.7-alpine - pull: true - commands: - - pip install -e .[ci] - - tox -e py37 - - test-3.7-pypy: + test-pypy: group: test image: pypy:3-7-slim pull: true commands: - - pip install -e .[ci] - - tox -e pypy37 - - test-3.6: - group: test - image: python:3.6-alpine - pull: true - commands: - - pip install -e .[ci] - - tox -e py36 + - pip install -e .[test] + - pytest --cov=app --cov-fail-under=90 tests/ lint: image: python:3.6-alpine commands: - apk update && apk add --no-cache build-base - - pip install -e .[ci] - - tox -e lint + - pip install -e .[lint] + - black --check setup.py app + - flake8 setup.py app