Skip to content

Add support for sweep.yml as an alternative to the default `sweep.y… #1

Add support for sweep.yml as an alternative to the default `sweep.y…

Add support for sweep.yml as an alternative to the default `sweep.y… #1

Workflow file for this run

name: Pylint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Run pylint
run: poetry run pylint sweepai --errors-only