From c4f68c428218ee2e806af2fd0ce74d982f69dd2c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 19 Jan 2023 14:16:47 +0100 Subject: [PATCH] CI: use pre-commit to run tests --- .woodpecker.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6f354bc..c16e9d8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,19 +4,12 @@ clone: tags: true pipeline: - test-pylint: - group: test + tests: image: debian:stable-slim commands: - DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null - - DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-requests python3-xmltodict pylint3 < /dev/null > /dev/null - - python3 -m pylint check_forgejo_upgrade - - test-flake8: - group: test - image: pipelinecomponents/flake8 - commands: - - flake8 check_forgejo_upgrade + - DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-requests python3-xmltodict pylint3 git pre-commit < /dev/null > /dev/null + - pre-commit run --all-files build: image: brenard/debian-python-deb