Skip to content

Commit 8025bfe

Browse files
.github/workflows/test_1.21.yml: new, for testing release branch 1.21.
1 parent f0b0a93 commit 8025bfe

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/test_1.21.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Test branch 1.21.
2+
3+
on:
4+
schedule:
5+
- cron: '13 5 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
test_branch_121:
11+
# Simple build+test on single platform using latest MuPDF from git. This is
12+
# a cut-down version of `build_wheels` except that we use latest MuPDF from
13+
# git and use a single platform and python version.
14+
#
15+
name: Test branch 1.21
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
21+
steps:
22+
23+
- uses: actions/checkout@v2
24+
with:
25+
ref: 1.21
26+
- uses: actions/setup-python@v2
27+
28+
# Set up cibuildwheel.
29+
#
30+
- name: cibuildwheel
31+
uses: pypa/cibuildwheel@v2.11.2
32+
33+
env:
34+
# We test building with the default hard-coded mupdf URL.
35+
36+
# Build on single cpu.
37+
CIBW_ARCHS_LINUX: x86_64
38+
39+
# Build for single python version.
40+
CIBW_BUILD: "cp311*"
41+
42+
# Don't build for unsupported platforms.
43+
CIBW_SKIP: "pp* *i686 *-musllinux_* cp36*"
44+
45+
# Get cibuildwheel to run pytest with each wheel.
46+
CIBW_TEST_REQUIRES: "fontTools pytest"
47+
CIBW_TEST_COMMAND: "pytest -s {project}/tests"
48+
CIBW_BUILD_VERBOSITY: 3

0 commit comments

Comments
 (0)