MicroPython 1.23.0 #358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: ${{matrix.name}} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
name: Python Linting (Linux) | |
cache-key: linux | |
apt-packages: python3 python3-pip | |
python-packages: flake8 | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
# Linux deps | |
- name: Install deps | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update && sudo apt install ${{matrix.apt-packages}} | |
- name: Install Python Deps | |
run: python3 -m pip install ${{matrix.python-packages}} | |
- name: Lint | |
shell: bash | |
run: | | |
python3 -m flake8 micropython/examples | |
python3 -m flake8 --ignore E501,F405,F403,F401 micropython/modules_py |