From a8bcf7b95690577604b4539a4d8ec5559bdfc8dd Mon Sep 17 00:00:00 2001 From: Bloopy <63004556+bloopy-code@users.noreply.github.com> Date: Sat, 3 Jan 2026 23:56:40 +0000 Subject: [PATCH] Create main.yml trying again.. --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d48bada --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up uv + uses: astral-sh/setup-uv@v7 + with: + enable-cache: true + cache-dependency-glob: | + uv.lock + pyproject.toml + - name: Install Python + run: uv python install ${{ matrix.python-version }} + + - name: Sync dependencies + run: uv sync --frozen + + - name: Ruff format (check) + run: uv run ruff format --check . + + - name: Ruff lint + run: uv run ruff check . + + - name: Mypy + run: uv run mypy src tests + + - name: Run tests + run: uv run pytest