Add black/pylint to github actions

This commit is contained in:
tntexplosivesltd 2023-11-22 23:15:16 +13:00
parent e97e20bb6a
commit d6e91be015
2 changed files with 21 additions and 9 deletions

View File

@ -3,12 +3,24 @@ name: Format
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
clang-format: format:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build isledecomp library
shell: bash
run: |
pip install black pylint tools/isledecomp
- name: Run pylint and black
shell: bash
run: |
pip install -r tools/reccmp/requirements.txt
pylint tools
black --check tools
- name: Run clang-format - name: Run clang-format
run: | run: |
pipx run "clang-format>=17,<18" \ pipx run "clang-format>=17,<18" \