Skip to content

Work around Windows CI issue with Python 3.11 #461

Work around Windows CI issue with Python 3.11

Work around Windows CI issue with Python 3.11 #461

Workflow file for this run

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