Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/test_python_pip.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pip build/install and test of Python Bindings
name: Pip build/install and test of Python Bindings

on:
schedule:
Expand All @@ -12,17 +12,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-latest]
# os: [ubuntu-20.04, windows-2019, macos-latest]
# zxing need c++ 20, so we need to use ubuntu-22.04 -- 2025/03/19
os: [ubuntu-22.04, windows-2019, macos-latest]

# Avoid cancelling of all runs after a single failure.
fail-fast: false

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3

- name: Pip build/install and test of Python Bindings

Expand Down Expand Up @@ -52,8 +54,8 @@ jobs:
command += f' && ./{venv_name}/Scripts/activate'.replace('/', os.sep)
else:
command += f' && . {venv_name}/bin/activate'
command += f' && python -m pip install -U pip setuptools'
command += f' && python -m pip install -vv .'
command += f' && python -m pip install -U pip libclang swig setuptools'
command += f' && python setup.py install'
command += f' && python scripts/mupdfwrap.py -d - --test-python'

print(f'Running: {command}')
Expand All @@ -63,7 +65,7 @@ jobs:
shell: python

- name: Archive generated code
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: generated-code
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ platform/win32/Release
platform/win32/ReleaseOpenssl
platform/win32/Memento
platform/win32/x64
/.vs