Skip to content

Commit

Permalink
.github/workflows/test_python_pip.yml: also test on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed May 3, 2023
1 parent 815527a commit 991176a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test_python_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-20.04, windows-2019, macos-10.15]
# 2023-02-10: Clang-python appears to not find any functions on macos.
os: [ubuntu-20.04, windows-2019]
os: [ubuntu-20.04, windows-2019, macos-latest]

# Avoid cancelling of all runs after a single failure.
fail-fast: false
Expand Down Expand Up @@ -48,16 +46,12 @@ jobs:
venv_name = 'pylocal'
if platform.system() == 'Windows':
venv_py = os.path.join( '.', venv_name, 'Scripts', 'python.exe')
venv_activate = os.path.join( '.', venv_name, 'Scripts', 'activate')
else:
venv_py = f'./{venv_name}/bin/python'
venv_activate = f'. {venv_name}/bin/activate'
command = ''
command += f'{sys.executable} -m venv {venv_name}'
command += f' && {venv_activate}'
if platform.system() == 'Windows':
command += f' && ./{venv_name}/Scripts/activate'.replace('/', os.sep)
else:
command += f' && . {venv_name}/bin/activate'
command += f' && python -m pip install -U pip'
command += f' && python -m pip install -vv .'
command += f' && python scripts/mupdfwrap.py -d - --test-python'
Expand All @@ -67,3 +61,12 @@ jobs:
subprocess.run( command, check=1, shell=1)
shell: python

- name: Archive generated code
uses: actions/upload-artifact@v3
if: failure()
with:
name: generated-code
path: |
platform/c++/
platform/python/

0 comments on commit 991176a

Please sign in to comment.