lnbits-legend/.github/workflows/linting.yml

37 lines
974 B
YAML
Raw Normal View History

name: linter
on: [push, pull_request]
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
poetry-version: ["1.5.1"]
steps:
- uses: actions/checkout@v3
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install python packages
run: poetry install
- name: Check black
run: make checkblack
- name: Check ruff
run: make checkruff
- name: Check mypy
run: make mypy
- name: Install node packages
run: npm i
- name: Run tests
run: make pyright
- name: Check prettier
2023-02-20 11:40:10 +01:00
run: make checkprettier