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