skyeweave/.forgejo/workflows/check.yaml

49 lines
1.5 KiB
YAML
Raw Normal View History

2024-08-09 16:57:33 +00:00
on:
push:
branches: "**"
jobs:
pylint:
runs-on: docker
2024-10-04 19:07:26 +00:00
container: forgejo.neshweb.net/ci-docker-images/python-neshweb:3.11
2024-08-09 16:57:33 +00:00
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
run: |
2024-10-05 13:09:05 +00:00
pip install -e .[lint] --disable-pip-version-check --no-cache-dir -q
2024-08-09 16:57:33 +00:00
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
2024-10-04 19:07:26 +00:00
container: forgejo.neshweb.net/ci-docker-images/python-neshweb:3.11
2024-08-09 16:57:33 +00:00
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
run: |
2024-10-05 13:09:05 +00:00
pip install -e .[typing] --disable-pip-version-check --no-cache-dir -q
2024-08-09 16:57:33 +00:00
python -m pip list --format=columns --disable-pip-version-check
- name: Run mypy
run: |
mypy --version
mypy .
2024-10-20 19:38:22 +00:00
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