Skip to content

Fix mayavi install

Fix mayavi install #65

Workflow file for this run

name: "Sphinx: Render docs"
on: push
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
env:
ETS_TOOLKIT: qt4
QT_API: "pyqt5"
TVTK_VERBOSE: "true"
VTK_PARSER_VERBOSE: "true"
PYTHONUNBUFFERED: "1"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Linux packages for Qt5/Qt6 support and start Xvfb
uses: pyvista/setup-headless-display-action@v3
with:
qt: true
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Upgrade pip, install package, install requirements, build docs
run: |
pip install --upgrade pip
pip install -r ./docs/requirements.txt
- name: Install dependencies
run: |
set -exo pipefail
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pyqt5 numpy vtk pillow pytest pytest-timeout traits traitsui --only-binary="numpy,vtk"
- name: Install mayavi and tvtk
run: pip install --no-build-isolation mayavi
- name: Test Mayavi package
run: pytest -v --timeout=10 mayavi
- name: Test tvtk package
run: pytest -sv --timeout=60 tvtk
- name: Install Atomaton
run: pip install -e .
- name: Build Docs
run: sphinx-build docs ./docs/_build/html/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/_build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/docs'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/