-
Notifications
You must be signed in to change notification settings - Fork 476
42 lines (34 loc) · 1.44 KB
/
test_sysinstall.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test sysinstall
on:
schedule:
- cron: '13 4 * * *'
workflow_dispatch:
jobs:
sysinstall:
name: Test sysinstall
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
# It seems to be important not to install a custom python here,
# because `sudo` (which we need to use when installing to /usr/local
# etc) always ends up running the default python, even if we set
# $PATH etc. So for example we can end up with mupdf files and
# pymupdf files being installed into .../python3.11/site-packages and
# .../python3.10/site-packages, and tests all fail to import pymupdf.
#
#- uses: actions/setup-python@v2
#with:
# # 3.12 doesn't have setuptools. As of 2024-01-03, MuPDF build requires setuptools before it
# # sees `--venv` and defers to a venv, so we currently have to force use of python 3.11.
# python-version: '3.11'
- name: sysinstall_venv
run:
# Use venv.
python3 scripts/sysinstall.py --root / --mupdf-git '--branch master https://github.com/ArtifexSoftware/mupdf.git'
- name: sysinstall_sudo
run:
# Do not use a venv, instead install required packages with sudo.
python3 scripts/sysinstall.py --pip sudo --root / --mupdf-git '--branch master https://github.com/ArtifexSoftware/mupdf-julian.git'