1name: Python CI 2 3# This workflow will be triggered when a PR modifies some python relevant files 4on: 5 pull_request: 6 paths: 7 - "**.py" 8 - "requirements.txt" 9 10jobs: 11 python_lint: 12 name: python lint 13 runs-on: ubuntu-latest 14 strategy: 15 matrix: 16 python-version: [3.6, 3.7, 3.8] 17 18 steps: 19 - name: Checkout 20 uses: actions/checkout@master 21 - name: Set up Python environment 22 uses: actions/setup-python@master 23 with: 24 python-version: ${{ matrix.python-version }} 25 - name: Install dependencies 26 run: | 27 export IDF_PATH=${GITHUB_WORKSPACE} 28 pip install --upgrade pip 29 pip install -r requirements.txt 30 - name: Lint with flake8 31 run: | 32 pip install flake8 33 flake8 . --config=.flake8 --benchmark 34