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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue