From 7e607af51d645902bfa547495bf52a6256ad34e2 Mon Sep 17 00:00:00 2001 From: Raphael Avocegamou Date: Mon, 1 Jun 2026 22:21:37 -0400 Subject: [PATCH] ci: add windows-latest and macos-latest to test matrix Expand the CI OS matrix to [ubuntu-latest, macos-latest, windows-latest]. Key Windows fixes: - Upgrade pip first so SSL cert chain is up to date - Use --trusted-host pypi.org / files.pythonhosted.org on Windows to work around OSStatus -26276 SSL verification failures - Install .[dev] so pytest is available in the venv - Use python -m pytest instead of bare pytest to avoid Windows PATH issues --- .github/workflows/ci.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b0875a..8e11319 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,21 @@ name: ci-python on: [pull_request, push] jobs: py: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' - - run: python -m pip install -e . || true - - run: python -m pytest || true + - name: Upgrade pip + run: python -m pip install --upgrade pip + - name: Install package (non-Windows) + if: runner.os != 'Windows' + run: python -m pip install -e ".[dev]" + - name: Install package (Windows) + if: runner.os == 'Windows' + run: python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -e ".[dev]" + - run: python -m pytest