---
name: "linting - all"
on:
  pull_request:
  push:
    branches:
      - "main"
jobs:
  lint:
    name: "linting (python)"
    runs-on: "ubuntu-latest"
    steps:
      - name: "Check out repository"
        uses: "actions/checkout@v2"
      - name: "Set up Python"
        uses: "actions/setup-python@v2"
        with:
          python-version: "3.10"
      - name: "install linting tooling"
        continue-on-error: true
        run: |
          python -m pip install --upgrade pip
          python -m pip install -r requirements/local.txt ; pylint **/*.py
      - name: "run linting via tox"
        run: |
          tox -e linting
