From dee73a470b72fb7ea20c16b423891af8be413f6f Mon Sep 17 00:00:00 2001 From: mmc-cloud <81271475+mmc-cloud@users.noreply.github.com> Date: Thu, 10 Sep 2026 11:02:02 +0800 Subject: [PATCH] ci: add GitHub Actions test workflow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4da0235 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up uv + uses: astral-sh/setup-uv@v6 + with: + version: "0.9.21" + enable-cache: true + + - name: Set up Python + run: uv python install 3.11 + + - name: Install dependencies + run: uv sync --locked + + - name: Run tests + run: uv run pytest