Add lila github action #333
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format | |
on: | |
push: | |
branches: ["master"] | |
paths: | |
- ".github/workflows/format.yml" | |
- "**.py" | |
- ".editorconfig" | |
pull_request: | |
paths: | |
- ".github/workflows/format.yml" | |
- "**.py" | |
- ".editorconfig" | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up latest python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Set up poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Check formatting | |
run: poetry run black berserk tests check-endpoints.py --check |