name: Python CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v2 with: enable-cache: true cache-dependency-glob: "uv.lock" - name: Set up Python uses: actions/setup-python@v5 with: python-version-file: ".python-version" - name: Install the project run: uv sync --all-extras --dev - name: Format with Black run: uv run black --check . - name: Lint with Ruff run: uv run ruff check . # - name: Run tests (Uncomment when tests exist) # run: uv run pytest