mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 05:48:08 +03:00
9d728a1c65
* Add base * Add base again * Test reporting * Fix reporting * Fix secrets * Fix arguments in report * Remove depricated actions * Disable reporting on PR Co-authored-by: あく <alleteam@gmail.com>
30 lines
683 B
YAML
30 lines
683 B
YAML
name: 'Python Lint'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- "release*"
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint_python:
|
|
runs-on: [self-hosted,FlipperZeroShell]
|
|
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: SET_GH_OUTPUT=1 FBT_TOOLCHAIN_PATH=/runner/_work ./fbt lint_py
|