name: Check code quality

on:
  push:
    branches:
      - main

jobs:
  check-code-quality:
    name: Check code quality
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: 3.12
      - name: Install dependencies
        run: python -m pip install --upgrade pre-commit
      - name: Check code quality
        run: make lint
