-
-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (50 loc) · 2.03 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
name: Mathics (Windows)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
os: [windows]
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
choco install llvm nodejs
set LLVM_DIR="C:\Program Files\LLVM"
- name: Install Python dependencies
run: |
# Can adjust when next Mathics is released
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# For testing 3.11 we need to do something like the below until the next Mathics3 is released
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
git clone --branch master https://github.com/Mathics3/mathics-core
bash -c '(cd mathics-core && pip3 install -e .[full])'
bash -c '(cd mathics-core && bash ./admin-tools/make-op-tables.sh)'
- name: Install Mathics3 Django
run: |
# Might be needed to install matplotlib
python -m pip install msvc-runtime
python -m pip install pytest pexpect
npm install
python -m pip install -e .[full]
cp node_modules/\@mathicsorg/mathics-threejs-backend/docs/build.js mathics_django/web/media/js/mathics-threejs-backend/index.js
cp node_modules/\@mathicsorg/mathics-threejs-backend/package.json mathics_d
- name: Test Mathics3 Django
run: |
# Until we can't figure out what's up with TextRecognize:
make pytest gstest
make doctest o="--exclude TextRecognize,PythonCProfileEvaluation"
# make check