forked from pymupdf/PyMuPDF
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.64 KB
/
test_mupdf-master-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test mupdf master branch
on:
schedule:
- cron: '13 6 * * *'
workflow_dispatch:
jobs:
test_mupdf_master_branch:
# Build+test current PyMuPDF git with mupdf git master branch.
#
name: Test mupdf master branch
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
# Avoid cancelling of all cibuildwheel runs after a single failure.
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
# Set up cibuildwheel.
#
- name: cibuildwheel
uses: pypa/[email protected]
env:
# PYMUPDF_SETUP_MUPDF_TGZ="": don't embed mupdf in sdist - no need
# because the build stage gets MuPDF using `git clone ...`.
#
# PYMUPDF_SETUP_MUPDF_BUILD="git:...": build with mupdf from a `git
# clone` command, selecting the current master branch.
#
CIBW_ENVIRONMENT: PYMUPDF_SETUP_MUPDF_TGZ="" PYMUPDF_SETUP_MUPDF_BUILD="git:--recursive --depth 1 --shallow-submodules --branch master https://github.com/ArtifexSoftware/mupdf.git"
# Build on single cpu.
CIBW_ARCHS_LINUX: x86_64
# Build for single python version.
CIBW_BUILD: "cp311*"
# Don't build for unsupported platforms.
CIBW_SKIP: "pp* *i686 *-musllinux_* cp36*"
# Get cibuildwheel to run pytest with each wheel.
CIBW_TEST_REQUIRES: "fontTools pytest"
CIBW_TEST_COMMAND: "python {project}/tests/run_compound.py pytest -s {project}/tests"
CIBW_BUILD_VERBOSITY: 3