From e1058c6f775093e27dc37c5af81e1187dc983158 Mon Sep 17 00:00:00 2001 From: fanng <“fanng@apache.org”> Date: Mon, 6 Jul 2026 15:54:38 +0900 Subject: [PATCH] Add GitHub Actions workflow running pytest uv-based setup with dependency caching; SCRFD-dependent tests skip automatically when the model pack is absent, so CI needs no model download. --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..45196fd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + +jobs: + pytest: + runs-on: ubuntu-latest + timeout-minutes: 40 + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + + - name: Install dependencies + run: uv sync --locked + + # SCRFD-dependent tests skip themselves when the model pack is absent, + # so no model download is needed in CI. + - name: Run tests + run: uv run pytest tests/ -q