mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
fe2b9718e1
* Fix artifacts naming * Github: build on pull requests * Github: narrow build trigger criteria. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
35 lines
728 B
YAML
35 lines
728 B
YAML
name: 'Python Lint'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- "release*"
|
|
tags:
|
|
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
|