Skip to content

Set default upstream branch on failure #9

Set default upstream branch on failure

Set default upstream branch on failure #9

Workflow file for this run

name: Lint on Commit
on:
push:
branches:
- '*'
- '!main'
pull_request:
branches:
- '*'
- '!main'
jobs:
lint:
name: Run Linter
runs-on: ubuntu-latest # You can change the runner environment as needed
steps:
- name: Checkout code
uses: actions/checkout@v2 # Checkout the repository code
- name: Set up Python
uses: actions/setup-python@v2 # Set up Python environment
with:
python-version: 3.11 # Specify Python version 3.11
- name: Install dependencies
run: pip install -r src/requirements.txt # Install dependencies from the src folder
- name: Install flake8
run: pip install flake8
- name: Run Linter
run: flake8 --ignore=E501 src # Replace with your linter command and specify the target directory, e.g., pylint src, mypy src, etc.