49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
on:
|
|
push:
|
|
branches: "**"
|
|
|
|
jobs:
|
|
pylint:
|
|
runs-on: docker
|
|
container: forgejo.neshweb.net/ci-docker-images/python-neshweb:3.11
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
- name: Install packages
|
|
run: |
|
|
pip install -e .[lint] --disable-pip-version-check --no-cache-dir -q
|
|
python -m pip list --format=columns --disable-pip-version-check
|
|
- name: Run pylint
|
|
run: |
|
|
pylint --version
|
|
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
|
|
|
mypy:
|
|
runs-on: docker
|
|
container: forgejo.neshweb.net/ci-docker-images/python-neshweb:3.11
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
- name: Install packages
|
|
run: |
|
|
pip install -e .[typing] --disable-pip-version-check --no-cache-dir -q
|
|
python -m pip list --format=columns --disable-pip-version-check
|
|
- name: Run mypy
|
|
run: |
|
|
mypy --version
|
|
mypy .
|
|
|
|
tests:
|
|
runs-on: docker
|
|
container: forgejo.neshweb.net/ci-docker-images/python-neshweb:3.11
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
- name: Install packages
|
|
run: |
|
|
pip install -e .[testing] --disable-pip-version-check --no-cache-dir -q
|
|
python -m pip list --format=columns --disable-pip-version-check
|
|
- name: Run pytest
|
|
run: |
|
|
pytest
|