flipperzero-firmware/.github/workflows/lint_python.yml

30 lines
661 B
YAML
Raw Normal View History

name: 'Python Lint'
2021-08-12 14:42:56 +00:00
on: pull_request
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- name: 'Cleanup workspace'
uses: AutoModality/action-clean@v1
- 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@v2
with:
fetch-depth: 0
- name: 'Setup python'
uses: actions/setup-python@v2
- name: 'Check python code with black'
uses: psf/black@20.8b1