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"]
|
2022-12-27 12:20:07 +00:00
|
|
|
poetry-version: ["1.3.1"]
|
2020-05-04 09:34:39 +00:00
|
|
|
steps:
|
2023-01-29 10:46:20 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-27 15:44:52 +00:00
|
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
|
|
uses: abatilo/actions-poetry@v2
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
2023-01-29 10:46:20 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: "poetry"
|
2022-08-03 12:10:32 +00:00
|
|
|
- name: Install packages
|
2023-01-23 11:57:37 +00:00
|
|
|
run: |
|
|
|
|
poetry install
|
2023-02-20 10:40:10 +00:00
|
|
|
npm install prettier
|
2022-08-03 12:10:32 +00:00
|
|
|
- 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
|
2023-02-20 10:40:10 +00:00
|
|
|
run: make checkprettier
|