Skip to content

Commit fa83c30

Browse files
committed
Update ci to ensure python version, multi run for windows
1 parent a9118e7 commit fa83c30

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

.github/workflows/ci-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
path: "tests/samples/W3C_SVG_12_TinyTestSuite"
4646
key: "w3c-svg12-tinytestsuite-${{ matrix.python-version }}-${{ matrix.os }}"
4747
- name: "Run tests for ${{ matrix.python-version }}"
48-
run: uv run pytest
48+
run: uv run --python ${{ matrix.python-version }} pytest

.github/workflows/ci-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
path: "tests/samples/W3C_SVG_12_TinyTestSuite"
4343
key: "w3c-svg12-tinytestsuite-${{ matrix.python-version }}-${{ matrix.os }}"
4444
- name: "Run tests for ${{ matrix.python-version }}"
45-
run: uv run pytest
45+
run: uv run --python ${{ matrix.python-version }} pytest

.github/workflows/ci-windows.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Run Matrix Tests on Windows
22
on: [push, pull_request, workflow_dispatch]
33
jobs:
44
tests:
5-
name: "Python ${{ matrix.python-version }} on Windows"
5+
name: "Python Tests for Windows"
66
runs-on: "windows-latest"
7-
strategy:
8-
matrix:
9-
python-version: ["3.9", "3.10", "3.11", "pypy-3.9"]
7+
# strategy:
8+
# matrix:
9+
# python-version: ["3.9", "3.10", "3.11", "pypy-3.9"]
1010
steps:
1111
- uses: "actions/checkout@v4"
1212

@@ -28,20 +28,28 @@ jobs:
2828
cache-name: "cache-wikipedia-flags"
2929
with:
3030
path: "tests/samples/wikipedia/flags"
31-
key: "wikipedia-flags-${{ matrix.python-version }}-${{ matrix.os }}"
31+
key: "wikipedia-flags-" # just use single cache for windows
3232
- name: "Cache for wikipedia symbols"
3333
uses: actions/cache@v3
3434
env:
3535
cache-name: "cache-wikipedia-symbols"
3636
with:
3737
path: "tests/samples/wikipedia/symbols"
38-
key: "wikipedia-symbols-${{ matrix.python-version }}-${{ matrix.os }}"
38+
key: "wikipedia-symbols-"
3939
- name: "Cache for w3c svg12 tinytestsuite"
4040
uses: actions/cache@v3
4141
env:
4242
cache-name: "cache-w3c-svg12-tinytestsuite"
4343
with:
4444
path: "tests/samples/W3C_SVG_12_TinyTestSuite"
45-
key: "w3c-svg12-tinytestsuite-${{ matrix.python-version }}-${{ matrix.os }}"
46-
- name: "Run tests for ${{ matrix.python-version }}"
47-
run: uv run pytest
45+
key: "w3c-svg12-tinytestsuite-"
46+
- name: "Run tests for 3.9"
47+
run: uv run --python 3.9 pytest
48+
- name: "Run tests for 3.10"
49+
run: uv run --python 3.10 pytest
50+
- name: "Run tests for 3.11"
51+
run: uv run --python 3.11 pytest
52+
- name: "Run tests for 3.13"
53+
run: uv run --python 3.13 pytest
54+
- name: "Run tests for pypy-3.9"
55+
run: uv run --python pypy-3.9 pytest

0 commit comments

Comments
 (0)