Merge pull request #118 from gabbhack/pre-commit-ci-update-config #64
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: Run linters | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- master | |
jobs: | |
build: | |
if: "github.event.pull_request.draft == false && ! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.5.1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
cache: 'poetry' | |
- name: Install deps | |
run: poetry install | |
- name: Lint | |
run: make lint |