Update workflows

This commit is contained in:
Willy-JL
2023-03-04 20:04:38 +00:00
parent 46831db533
commit 5d7f5a1ffc
3 changed files with 44 additions and 2 deletions

33
.github/workflows/lint_python.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: 'Python Lint'
on:
push:
branches:
- dev
- "release*"
tags:
- '*'
pull_request:
env:
FBT_TOOLCHAIN_PATH: /home/runner/work
SET_GH_OUTPUT: 1
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- name: 'Decontaminate previous build leftovers'
run: |
if [ -d .git ]; then
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
fi
- name: 'Checkout code'
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Check code formatting'
run: ./fbt lint_py