From e13233fa2c5ab2058749baaa90ff25aca5a1d7fc Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Tue, 15 Jul 2025 10:39:10 +0200 Subject: [PATCH 1/2] Add Windows to CI matrix --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cecdbe46..0b551a1b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: test_minimal: # run tests with minimal installation strategy: matrix: - os: [ubuntu-22.04, macos-latest] + os: [ubuntu-22.04, macos-latest, windows-latest] python-version: ["3.9", "3.11", "3.13"] runs-on: ${{ matrix.os }} steps: From 5da9086efa9e38e6b6b31c136e65c74abb96e436 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Fri, 1 Aug 2025 15:47:37 +0200 Subject: [PATCH 2/2] Put Windows tests in a separate workflow, until full Windows support is implemented --- .github/workflows/tests-win.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/tests-win.yml diff --git a/.github/workflows/tests-win.yml b/.github/workflows/tests-win.yml new file mode 100644 index 00000000..8ecb04b0 --- /dev/null +++ b/.github/workflows/tests-win.yml @@ -0,0 +1,30 @@ +name: Run Sumatra tests on Windows + +on: [push, pull_request] + +jobs: + + test_minimal: # run tests with minimal installation + strategy: + matrix: + os: [windows-latest] + python-version: ["3.11", "3.13"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install + run: | + python -m pip install --upgrade pip + pip install .[hg,git,test] + pip freeze + - name: Configure git + run: | + git config --global user.email "testuser@example.org" + git config --global user.name "Test user" + - name: Test with pytest + run: | + pytest -v diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b551a1b..f615d6f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Run Sumatra tests +name: Run Sumatra tests on Linux, Mac OS on: [push, pull_request] @@ -7,7 +7,7 @@ jobs: test_minimal: # run tests with minimal installation strategy: matrix: - os: [ubuntu-22.04, macos-latest, windows-latest] + os: [ubuntu-22.04, macos-latest] python-version: ["3.9", "3.11", "3.13"] runs-on: ${{ matrix.os }} steps: