From 6cdb932f7b5ae7f9d5b02b0a915af57137573883 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 25 May 2026 03:20:05 +0000 Subject: [PATCH] ci: add test workflow that runs on pull requests to main https://claude.ai/code/session_012EzZ589xLLeTpKAk7g2WeR --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9c8ebd5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + pull_request: + branches: + - main + +jobs: + test: + name: Run unit tests + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: uv sync + + - name: Run tests + run: uv run python -m unittest discover -s tests -v