name: Code Quality on: pull_request: branches: [main] push: branches: [main] jobs: code-quality: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip pip install ruff - name: Run Ruff formatter check run: ruff format --check . - name: Run Ruff linter run: ruff check . tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip pip install -e .[dev] - name: Run tests run: pytest tests/ -m "not api_health" -q