-
-
Notifications
You must be signed in to change notification settings - Fork 55
executable file
·59 lines (55 loc) · 2.01 KB
/
windows.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Mathics3 (Windows)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
os: [windows]
# "make doctest" on MS Windows fails without showing much of a
# trace of where things went wrong on Python before 3.11.
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
# use --force because llvm may already exist, but it also may not exist.
# so we will be safe here. Another possibility would be check and install
# conditionally.
choco install --force llvm
# choco install tesseract
set LLVM_DIR="C:\Program Files\LLVM"
- name: Install Mathics3 with Python dependencies
run: |
# We can comment out after next Mathics-Scanner release
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
git clone https://github.com/Mathics3/mathics-scanner.git
cd mathics-scanner
pip install -e .
cd ..
# python -m pip install Mathics-Scanner[full]
make develop-full
- name: Test Mathics3
# Limit pip install to a basic install *without* full dependencies.
# Here is why:
# * Windows is the slowest CI build, this speeds up testing by about
# 3 minutes
# * Other CI tests on other (faster) OS's full dependencies and
# we needs some CI that tests running when packages aren't available
# So "dev" only below, not "dev,full".
run: |
pip install pyocr # from full
pip install -e .[dev]
make pytest gstest
make doctest DOCTEST_OPTIONS="--exclude WordCloud"
# make check