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 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"