2020-09-03 21:02:15 +00:00
|
|
|
name: formatting
|
2020-05-04 09:34:39 +00:00
|
|
|
|
2020-09-03 01:06:53 +00:00
|
|
|
on:
|
2022-10-06 16:51:36 +00:00
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2020-09-03 01:06:53 +00:00
|
|
|
pull_request:
|
2022-06-26 23:11:35 +00:00
|
|
|
branches: [ main ]
|
2020-05-04 09:34:39 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-08-03 12:10:32 +00:00
|
|
|
checks:
|
2020-05-04 09:34:39 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-27 15:44:52 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.9"]
|
|
|
|
poetry-version: ["1.2.1"]
|
2020-05-04 09:34:39 +00:00
|
|
|
steps:
|
2020-09-03 01:06:53 +00:00
|
|
|
- uses: actions/checkout@v2
|
2022-09-27 15:44:52 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
|
|
uses: abatilo/actions-poetry@v2
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
2022-08-03 12:10:32 +00:00
|
|
|
- name: Install packages
|
|
|
|
run: poetry install
|
|
|
|
- name: Check black
|
|
|
|
run: make checkblack
|
|
|
|
- name: Check isort
|
|
|
|
run: make checkisort
|
2022-07-05 19:14:56 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2022-08-03 12:10:32 +00:00
|
|
|
- name: Check prettier
|
|
|
|
run: |
|
|
|
|
npm install prettier
|
|
|
|
make checkprettier
|