Skip to content

Fix docs build

Fix docs build #1474

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- main
env:
NAPARI_IMAGEJ_TEST_TIMEOUT: 60000
jobs:
build:
name: ${{ matrix.os }} (python ${{ matrix.python-version }}, java ${{matrix.java-version}})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.12']
java-version: ['11', '21']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java-version}}
distribution: 'zulu'
- name: Setup Qt libraries
uses: tlambert03/setup-qt-libs@v1
# strategy borrowed from vispy for installing opengl libs on windows
- name: Install Windows OpenGL
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
# We run headless on CI. This yields issues on Mac, where running Java
# headless will alter the screen size on Python, leading to errors. Adding
# this environment variable prevents Java from modifying the screen size.
- name: Set MacOS environment variables
if: runner.os == 'MacOS'
run: |
echo "AWT_FORCE_HEADFUL=true" >> $GITHUB_ENV
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Run tests
uses: coactions/setup-xvfb@v1
with:
run:
bash bin/test.sh
- name: Lint code
shell: bash
run: |
bin/lint.sh