Use @v6 and Mathics3-scanner in CI #574
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mathics (Windows) | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| os: [windows] | |
| python-version: ['3.13'] | |
| 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 | |
| choco install llvm nodejs | |
| set LLVM_DIR="C:\Program Files\LLVM" | |
| - name: Install Python dependencies | |
| run: | | |
| # # Can adjust when next Mathics3 is released | |
| # # python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] | |
| git clone --depth 1 https://github.com/Mathics3/Mathics3-scanner.git | |
| cd Mathics3-scanner/ | |
| pip install -e . | |
| bash -x admin-tools/make-JSON-tables.sh | |
| cd .. | |
| 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-JSON-tables.sh)' | |
| cd .. | |
| python -m pip install pytest pexpect | |
| npm install | |
| - name: Install Mathics3 Django | |
| run: | | |
| 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_django | |
| pip install -e .[full] | |
| - name: Test Mathics3 Django | |
| run: | | |
| make pytest gstest | |
| # import WordCloud fails with: | |
| # DLL load failed wile importing _c_interal_utils | |
| # Until we can't figure out what's up with TextRecognize: | |
| make doctest o="--exclude TextRecognize,PythonCProfileEvaluation,WordCloud" | |
| # make check |