pimoroni-pico/.github/workflows/python.yml

30 wiersze
657 B
YAML
Czysty Zwykły widok Historia

2021-04-15 08:21:27 +00:00
name: Python
on:
push:
pull_request:
jobs:
build:
2022-03-11 12:20:27 +00:00
name: Python Linting
runs-on: ubuntu-20.04
2021-04-15 08:21:27 +00:00
steps:
- uses: actions/checkout@v4
2021-04-15 08:21:27 +00:00
2022-03-11 12:20:27 +00:00
- name: Install Python Deps
run: python3 -m pip install flake8
- name: Lint micropython/modules_py
shell: bash
2021-04-15 08:21:27 +00:00
run: |
2022-08-03 07:58:04 +00:00
python3 -m flake8 --show-source --ignore E501 micropython/modules_py
2021-04-15 08:21:27 +00:00
2022-03-11 12:20:27 +00:00
- name: Lint micropython/examples
shell: bash
run: |
2022-08-03 07:58:04 +00:00
python3 -m flake8 --show-source --ignore E501 micropython/examples
2021-04-15 08:21:27 +00:00
2022-03-11 12:20:27 +00:00
- name: Lint .py tools in C++ examples
2021-04-15 08:21:27 +00:00
shell: bash
run: |
2022-08-03 07:58:04 +00:00
python3 -m flake8 --show-source --ignore E501 examples