mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-25 09:11:15 +00:00
Add black/pylint to github actions
This commit is contained in:
parent
e97e20bb6a
commit
d6e91be015
14
.github/workflows/format.yml
vendored
14
.github/workflows/format.yml
vendored
@ -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" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user