Test #190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
schedule: | |
- cron: '13 5 * * *' | |
workflow_dispatch: | |
jobs: | |
test: | |
# Build+test current PyMuPDF git. | |
# | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# 2023-05-09: Builds on Windows-latest do not work because our wdev.py | |
# (used to build MuPDF) picks up a later VS than setuptools (when | |
# building SWIG-generated PyMuPDF code). | |
# | |
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: | |
# Build will use the default hard-coded mupdf URL. | |
# Build on single cpu. | |
CIBW_ARCHS_LINUX: x86_64 | |
# Build for single python version. | |
CIBW_BUILD: "cp311*" | |
# Don't build for unsupported platforms or win32. | |
CIBW_SKIP: "pp* *i686 *-musllinux_* cp36* *win32*" | |
# Get cibuildwheel to run pytest with each wheel. | |
CIBW_TEST_REQUIRES: "fontTools pytest" | |
CIBW_TEST_COMMAND: "pytest -s {project}/tests" | |
CIBW_BUILD_VERBOSITY: 3 |