Skip to content

Commit 1e75664

Browse files
authored
Run CI tests on Windows (#414)
* Add Windows to CI matrix * Put Windows tests in a separate workflow, until full Windows support is implemented
1 parent 160b58b commit 1e75664

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/tests-win.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Sumatra tests on Windows
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test_minimal: # run tests with minimal installation
8+
strategy:
9+
matrix:
10+
os: [windows-latest]
11+
python-version: ["3.11", "3.13"]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install .[hg,git,test]
23+
pip freeze
24+
- name: Configure git
25+
run: |
26+
git config --global user.email "testuser@example.org"
27+
git config --global user.name "Test user"
28+
- name: Test with pytest
29+
run: |
30+
pytest -v

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Sumatra tests
1+
name: Run Sumatra tests on Linux, Mac OS
22

33
on: [push, pull_request]
44

0 commit comments

Comments
 (0)