CI: use pre-commit to run tests
This commit is contained in:
parent
0040605d88
commit
c4f68c4282
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue