mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-19 00:35:05 -04:00
Improved the Python CI for better Codequality (#12)
Add script for improved code quality Co-authored-by: julian <julian.kleber@sail.black> Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/12 Co-authored-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org> Co-committed-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org>
This commit is contained in:
parent
87fc5bac1e
commit
51fc52272e
@ -1,4 +1,23 @@
|
||||
|
||||
# This config shows how to handle Python-CI focusing on code quaility
|
||||
# was taken from https://codeberg.org/sail.black/serial-sphinx/src/branch/main/.woodpecker.yml
|
||||
# check there for license information
|
||||
|
||||
|
||||
pipeline:
|
||||
standardize:
|
||||
image: python:3.9-buster
|
||||
when:
|
||||
event: pull_request
|
||||
branch: main
|
||||
commands:
|
||||
- python -m pip install --upgrade pip
|
||||
- python -m pip install -r requirements.txt
|
||||
- python -m pip install pylint flake8 mypy>=0.971
|
||||
- python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- mypy --strict serial_sphinx/
|
||||
- python -m pylint -f parseable serial_sphinx/*.py
|
||||
|
||||
build:
|
||||
image: python:${TAG}-buster
|
||||
when:
|
||||
@ -10,12 +29,15 @@ pipeline:
|
||||
- python -m venv venv
|
||||
- /bin/bash -c "source venv/bin/activate"
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- python -m pip install -r requirements.txt
|
||||
- pytest tests/
|
||||
|
||||
|
||||
|
||||
matrix:
|
||||
TAG:
|
||||
- 3.7
|
||||
- 3.9
|
||||
- 3.8
|
||||
- 3.10
|
||||
|
||||
|
@ -14,7 +14,7 @@ Pull requests are accepted/welcome.
|
||||
| [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo |
|
||||
| [Docker/kaniko.yml](Docker/kaniko.yml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image |
|
||||
| [Docker/buildx.yml](Docker/buildx.yml) | Dockerfile | [buildx][2] | Build and publish Docker images for multiple architectures on codeberg |
|
||||
|[Python/.woodpecker.yml](Python)| Python | Python venv| Standard CI pipeline to test Python packages code on multiple Python distrubutions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git)|
|
||||
|[Python/.woodpecker.yml](Python)| Python | Python venv| Standard CI pipeline to test Python packages code on multiple Python distributions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git)|
|
||||
# More:
|
||||
https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user