-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows/test*: Use scripts/*.py instead of complex yml code.
When running tests, we need to not install `pillow` if on windows-x32; this is much easier to do in python, so we now use scripts/*.py instead of increasingly obscure yml configuration. .github/workflows/test-valgrind.yml Use scripts/test.py. .github/workflows/test_mupdf-master-branch.yml .github/workflows/test_mupdf-release-branch.yml .github/workflows/test_quick.yml Use scripts/gh_release.py. .github/workflows/test.yml Removed because unused.
- Loading branch information
1 parent
5e03d48
commit 3837e79
Showing
5 changed files
with
39 additions
and
208 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,30 +24,15 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
|
||
# Set up cibuildwheel. | ||
# | ||
- name: cibuildwheel | ||
uses: pypa/[email protected] | ||
|
||
- name: test_mupdf-master-branch | ||
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 psutil" | ||
CIBW_TEST_COMMAND: "python {project}/tests/run_compound.py pytest -s {project}/tests" | ||
CIBW_BUILD_VERBOSITY: 3 | ||
inputs_PYMUPDF_SETUP_MUPDF_BUILD: "git:--recursive --depth 1 --shallow-submodules --branch master https://github.com/ArtifexSoftware/mupdf.git" | ||
inputs_flavours: "0" | ||
inputs_sdist: "0" | ||
inputs_wheels_cps: "cp312*" | ||
inputs_wheels_default: "0" | ||
inputs_wheels_linux_auto: "1" | ||
inputs_wheels_macos_auto: "1" | ||
inputs_wheels_windows_auto: "1" | ||
run: | ||
python scripts/gh_release.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,30 +25,15 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
|
||
# Set up cibuildwheel. | ||
# | ||
- name: cibuildwheel | ||
uses: pypa/[email protected] | ||
|
||
- name: test_mupdf-master-branch | ||
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 release branch. | ||
# | ||
CIBW_ENVIRONMENT: PYMUPDF_SETUP_MUPDF_TGZ="" PYMUPDF_SETUP_MUPDF_BUILD="git:--recursive --depth 1 --shallow-submodules --branch 1.23.x 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 psutil" | ||
CIBW_TEST_COMMAND: "python {project}/tests/run_compound.py pytest -s {project}/tests" | ||
CIBW_BUILD_VERBOSITY: 3 | ||
inputs_PYMUPDF_SETUP_MUPDF_BUILD: "git:--recursive --depth 1 --shallow-submodules --branch 1.23.x https://github.com/ArtifexSoftware/mupdf.git" | ||
inputs_flavours: "0" | ||
inputs_sdist: "0" | ||
inputs_wheels_cps: "cp312*" | ||
inputs_wheels_default: "0" | ||
inputs_wheels_linux_auto: "1" | ||
inputs_wheels_macos_auto: "1" | ||
inputs_wheels_windows_auto: "1" | ||
run: | ||
python scripts/gh_release.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,9 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# We test on just Ubuntu, with hard-coded MuPDF, MuPDF master, and current MuPDF branch. | ||
# We test on just Ubuntu with MuPDF master. | ||
# | ||
os: [ubuntu-latest] | ||
environment: [ | ||
'PYMUPDF_SETUP_MUPDF_TGZ="" PYMUPDF_SETUP_MUPDF_BUILD="git:--recursive --depth 1 --shallow-submodules --branch master https://github.com/ArtifexSoftware/mupdf.git"', | ||
] | ||
|
||
# Avoid cancelling of all cibuildwheel runs after a single failure. | ||
fail-fast: false | ||
|
@@ -28,22 +25,16 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
|
||
- name: cibuildwheel | ||
uses: pypa/[email protected] | ||
- name: test_quick | ||
|
||
env: | ||
CIBW_ENVIRONMENT: ${{matrix.environment}} | ||
|
||
# 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 psutil" | ||
CIBW_TEST_COMMAND: "python {project}/tests/run_compound.py pytest -s {project}/tests" | ||
CIBW_BUILD_VERBOSITY: 3 | ||
inputs_PYMUPDF_SETUP_MUPDF_BUILD: "git:--recursive --depth 1 --shallow-submodules --branch master https://github.com/ArtifexSoftware/mupdf.git" | ||
inputs_flavours: "0" | ||
inputs_sdist: "0" | ||
inputs_wheels_cps: "cp312*" | ||
inputs_wheels_default: "0" | ||
inputs_wheels_linux_auto: "1" | ||
inputs_wheels_macos_auto: "1" | ||
inputs_wheels_windows_auto: "1" | ||
run: | ||
python scripts/gh_release.py |