2023-08-19 07:38:04 +02:00
|
|
|
name: linter
|
2023-04-16 09:16:24 +02:00
|
|
|
on: [push, pull_request]
|
2020-05-04 11:34:39 +02:00
|
|
|
jobs:
|
2022-08-03 14:10:32 +02:00
|
|
|
checks:
|
2020-05-04 11:34:39 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-27 17:44:52 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-08-19 07:38:04 +02:00
|
|
|
python-version: ["3.9", "3.10"]
|
2023-07-11 12:46:40 +02:00
|
|
|
poetry-version: ["1.5.1"]
|
2020-05-04 11:34:39 +02:00
|
|
|
steps:
|
2023-01-29 11:46:20 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-27 17:44:52 +02:00
|
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
|
|
uses: abatilo/actions-poetry@v2
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
2023-01-29 11:46:20 +01:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: "poetry"
|
2023-08-19 07:38:04 +02:00
|
|
|
|
|
|
|
- name: Install python packages
|
|
|
|
run: poetry install
|
2022-08-03 14:10:32 +02:00
|
|
|
- name: Check black
|
|
|
|
run: make checkblack
|
2023-08-19 07:38:04 +02:00
|
|
|
- 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
|
2022-08-03 14:10:32 +02:00
|
|
|
- name: Check prettier
|
2023-02-20 11:40:10 +01:00
|
|
|
run: make checkprettier
|