mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
58577db086
1. Disable the broken pull request sync temporarily 2. move python lint from travis to github action
33 lines
777 B
YAML
33 lines
777 B
YAML
name: Python CI
|
|
|
|
# This workflow will be triggered when a PR modifies some python relevant files
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "*.py"
|
|
- "requirements.txt"
|
|
|
|
jobs:
|
|
python_lint:
|
|
name: python lint
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [2.7, 3.5, 3.6, 3.7]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- name: Set up Python environment
|
|
uses: actions/setup-python@master
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Lint with flake8
|
|
run: |
|
|
pip install flake8
|
|
flake8 . --config=.flake8
|