Skip to content

Commit 66feda9

Browse files
.github/workflows/test_multiple.yml: new, for testing with different mupdf's.
1 parent 231ec22 commit 66feda9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Run scripts/test.py on multiple OS's (Windows, Linux, MacOS x64, MacOS arm64)
2+
# and with multiple specifications of MuPDF (PyMuPDF's hard-coded default,
3+
# master branch, release branch).
4+
5+
name: multiple
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
args:
11+
type: string
12+
default: ''
13+
description: 'Arguments to pass to scripts/test.py'
14+
schedule:
15+
- cron: '13 6 * * *'
16+
17+
jobs:
18+
19+
multiple:
20+
name: multiple
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, windows-2022, macos-13, macos-14]
25+
args: [
26+
'',
27+
'-m "git:--branch master https://github.com/ArtifexSoftware/mupdf"',
28+
'-m "git:--branch 1.26.x https://github.com/ArtifexSoftware/mupdf"',
29+
]
30+
fail-fast: false
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-python@v5
35+
- name: multiple
36+
env:
37+
PYMUPDF_test_args: ${{inputs.args}}
38+
run:
39+
python scripts/test.py ${{matrix.args}} wheel test -a PYMUPDF_test_args

0 commit comments

Comments
 (0)