From 121d1e729b9260446d0be99d9eb45edc899227f5 Mon Sep 17 00:00:00 2001 From: Bloopy <63004556+bloopy-code@users.noreply.github.com> Date: Sat, 3 Jan 2026 23:49:50 +0000 Subject: [PATCH] Create main.yml a tester main.yml for some basic CI --- .github/workflows/main.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 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..31e8bed --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,44 @@ +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