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/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
build/ISLE.PDB
|
build/ISLE.PDB
|
||||||
build/LEGO1.DLL
|
build/LEGO1.DLL
|
||||||
build/LEGO1.PDB
|
build/LEGO1.PDB
|
||||||
|
|
||||||
compare:
|
compare:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
python3 tools/verexp/verexp.py legobin/LEGO1.DLL build/LEGO1.DLL
|
python3 tools/verexp/verexp.py legobin/LEGO1.DLL build/LEGO1.DLL
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
@ -104,7 +104,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
ISLEPROGRESS.*
|
ISLEPROGRESS.*
|
||||||
LEGO1PROGRESS.*
|
LEGO1PROGRESS.*
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
needs: [build, compare]
|
needs: [build, compare]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -113,16 +113,16 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: 'probonopd/uploadtool'
|
repository: 'probonopd/uploadtool'
|
||||||
|
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
name: Win32
|
name: Win32
|
||||||
path: build
|
path: build
|
||||||
|
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
name: Accuracy Report
|
name: Accuracy Report
|
||||||
|
|
||||||
- name: Upload Continuous Release
|
- name: Upload Continuous Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -133,6 +133,6 @@ jobs:
|
|||||||
build/LEGO1.DLL \
|
build/LEGO1.DLL \
|
||||||
ISLEPROGRESS.* \
|
ISLEPROGRESS.* \
|
||||||
LEGO1PROGRESS.*
|
LEGO1PROGRESS.*
|
||||||
|
|
||||||
curl -X POST -F key=$UPLOAD_KEY -F 'file=@ISLEPROGRESS.SVG' https://legoisland.org/progress/
|
curl -X POST -F key=$UPLOAD_KEY -F 'file=@ISLEPROGRESS.SVG' https://legoisland.org/progress/
|
||||||
curl -X POST -F key=$UPLOAD_KEY -F 'file=@LEGO1PROGRESS.SVG' https://legoisland.org/progress/
|
curl -X POST -F key=$UPLOAD_KEY -F 'file=@LEGO1PROGRESS.SVG' https://legoisland.org/progress/
|
||||||
|
|||||||
16
.github/workflows/format.yml
vendored
16
.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" \
|
||||||
@ -19,4 +31,4 @@ jobs:
|
|||||||
LEGO1/*.cpp LEGO1/*.h \
|
LEGO1/*.cpp LEGO1/*.h \
|
||||||
LEGO1/realtime/*.cpp LEGO1/realtime/*.h \
|
LEGO1/realtime/*.cpp LEGO1/realtime/*.h \
|
||||||
LEGO1/tgl/*.h \
|
LEGO1/tgl/*.h \
|
||||||
LEGO1/viewmanager/*.cpp LEGO1/viewmanager/*.h
|
LEGO1/viewmanager/*.cpp LEGO1/viewmanager/*.h
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user