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

35 lines
749 B
YAML
Raw Normal View History

2021-04-15 09:21:27 +01:00
name: Python
on:
push:
pull_request:
jobs:
build:
name: ${{matrix.name}}
strategy:
matrix:
include:
- os: ubuntu-20.04
name: Linux
cache-key: linux
apt-packages: python3 python3-pip
python-packages: flake8
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
# 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 --ignore E501 micropython/modules_py micropython/examples