From 027e49cb8060f01f54dc3607dd5d8ef1caf475f3 Mon Sep 17 00:00:00 2001 From: Adityaaa <144815351+addydude@users.noreply.github.com> Date: Mon, 9 Nov 2026 08:11:44 +0530 Subject: [PATCH 1/2] ci: add GitHub Actions test and doctor workflow --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..a1662fd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + name: test (${{ matrix.os }}, py${{ matrix.python-version }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + python-version: ["3.11", "3.12"] + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + + - name: Install WebVac with test dependencies + run: | + python -m pip install --upgrade pip + pip install -e ".[dev]" + + - name: Run the unit test suite + run: python -m pytest tests -q + + - name: Install Patchright Chromium + run: python -m patchright install chromium + + - name: Smoke-check the CLI (doctor preflight) + run: python -m webvac --doctor From 46f1c01be1ff447648b55337369fa16f92227a99 Mon Sep 17 00:00:00 2001 From: Adityaaa <144815351+addydude@users.noreply.github.com> Date: Mon, 9 Nov 2026 08:22:46 +0530 Subject: [PATCH 2/2] fix: parse storage f-strings on Python 3.11 Python 3.11 rejects a backslash inside an f-string expression part (PEP 701 only lands in 3.12), so the report HTML failed to import on 3.11 even though the code ran on 3.12. Build the Forms/Contact tab buttons in plain code before the f-string. This also fixes the Contact button, which interpolated a literal 'contact-{i}' instead of the page index. --- webvac/data/storage.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/webvac/data/storage.py b/webvac/data/storage.py index 62b6f3f..251b8c4 100644 --- a/webvac/data/storage.py +++ b/webvac/data/storage.py @@ -554,6 +554,25 @@ def _save_html( og_rows = "".join(f"