Skip to content

Add test file to verify branch protection rule #8

Add test file to verify branch protection rule

Add test file to verify branch protection rule #8

Workflow file for this run

name: Python Lint Check
on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Specify your Python version
- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install flake8
- name: Run flake8 linter
run: |
. venv/bin/activate
flake8 ./lambda/*.py --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 ./lambda/*.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics