2024-06-29 12:14:18 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: "**"
|
|
|
|
|
|
|
|
jobs:
|
2024-07-05 09:15:07 +00:00
|
|
|
pylint:
|
2024-06-29 12:14:18 +00:00
|
|
|
runs-on: docker
|
|
|
|
container: nikolaik/python-nodejs:python3.11-nodejs21
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- name: Install packages
|
|
|
|
run: |
|
2024-07-05 09:22:56 +00:00
|
|
|
pip install -e .[dev] -q --disable-pip-version-check -q
|
2024-07-05 09:15:07 +00:00
|
|
|
python -m pip list --format=columns --disable-pip-version-check
|
2024-06-29 12:14:18 +00:00
|
|
|
- name: Run pylint
|
|
|
|
run: |
|
|
|
|
pylint --version
|
|
|
|
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
2024-07-05 09:15:07 +00:00
|
|
|
|
2024-07-05 09:22:56 +00:00
|
|
|
mypy:
|
2024-07-05 09:15:07 +00:00
|
|
|
runs-on: docker
|
|
|
|
container: nikolaik/python-nodejs:python3.11-nodejs21
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- name: Install packages
|
|
|
|
run: |
|
2024-07-05 09:22:56 +00:00
|
|
|
pip install -e .[dev] -q --disable-pip-version-check -q
|
2024-07-05 09:15:07 +00:00
|
|
|
python -m pip list --format=columns --disable-pip-version-check
|
|
|
|
- name: Run mypy
|
|
|
|
run: |
|
|
|
|
mypy --version
|
|
|
|
mypy .
|