CI: use pre-commit to run tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2023-01-19 14:16:47 +01:00
parent 0040605d88
commit c4f68c4282
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -4,19 +4,12 @@ clone:
tags: true tags: true
pipeline: pipeline:
test-pylint: tests:
group: test
image: debian:stable-slim image: debian:stable-slim
commands: commands:
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null - 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 - DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-requests python3-xmltodict pylint3 git pre-commit < /dev/null > /dev/null
- python3 -m pylint check_forgejo_upgrade - pre-commit run --all-files
test-flake8:
group: test
image: pipelinecomponents/flake8
commands:
- flake8 check_forgejo_upgrade
build: build:
image: brenard/debian-python-deb image: brenard/debian-python-deb