2020-09-03 23:02:15 +02:00
|
|
|
name: formatting
|
2020-05-04 11:34:39 +02:00
|
|
|
|
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:
|
|
|
|
python-version: ["3.9"]
|
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"
|
2022-08-03 14:10:32 +02:00
|
|
|
- name: Install packages
|
2023-01-23 12:57:37 +01:00
|
|
|
run: |
|
2023-07-11 12:46:40 +02:00
|
|
|
poetry install --no-root
|
2023-02-20 11:40:10 +01:00
|
|
|
npm install prettier
|
2022-08-03 14:10:32 +02:00
|
|
|
- name: Check black
|
|
|
|
run: make checkblack
|
|
|
|
- name: Check isort
|
|
|
|
run: make checkisort
|
2022-07-05 21:14:56 +02:00
|
|
|
- uses: actions/setup-node@v3
|
2022-08-03 14:10:32 +02:00
|
|
|
- name: Check prettier
|
2023-02-20 11:40:10 +01:00
|
|
|
run: make checkprettier
|