Skip to content

Add new color_labels filter to add color scalars to labeled data (#… #239

Add new color_labels filter to add color scalars to labeled data (#…

Add new color_labels filter to add color scalars to labeled data (#… #239

name: Integration Tests
on:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
push:
tags:
- "*"
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ALLOW_PLOTTING: true
SHELLOPTS: "errexit:pipefail"
jobs:
# For now this is just MNE-Python, but others could be added
mne:
name: MNE-Python
runs-on: ubuntu-22.04
env:
DISPLAY: ":99.0"
MNE_LOGGING_LEVEL: "info"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: git clone --depth=1 https://github.com/mne-tools/mne-python.git --branch main --single-branch
- run: ./mne-python/tools/setup_xvfb.sh
- name: Install MNE dependencies
run: pip install numpy scipy matplotlib nibabel "PyQt6-Qt6!=6.6.0,!=6.7.0" "PyQt6!=6.6.0" qtpy ipympl pytest pytest-cov pytest-harvest pytest-timeout sphinx-gallery nbformat nbclient imageio imageio-ffmpeg
- name: Install PyVista
run: pip install -ve . # pyvista
- name: Install PyVistaQt main
run: pip install -v git+https://github.com/pyvista/pyvistaqt.git
- name: Install MNE
run: pip install -ve . # mne
working-directory: mne-python
- name: MNE Info
run: mne sys_info -p
working-directory: mne-python
- run: ./tools/get_testing_version.sh
working-directory: mne-python
- uses: actions/cache@v4
with:
key: ${{ env.TESTING_VERSION }}
path: ~/mne_data
- run: ./tools/github_actions_download.sh
working-directory: mne-python
- run: pytest mne/viz/_brain mne/viz/tests/test_3d.py mne/viz/backends
working-directory: mne-python
pyvistaqt:
name: PyVistaQt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: git clone https://github.com/pyvista/pyvistaqt.git --single-branch
- uses: pyvista/setup-headless-display-action@main
with:
qt: true
pyvista: false
- run: pip install -ve ./pyvistaqt -r ./pyvistaqt/requirements_test.txt "PyQt6-Qt6!=6.6.0,!=6.7.0" "PyQt6!=6.6.0"
- run: pip install -ve .
- run: pytest ./tests
working-directory: pyvistaqt
geovista:
name: GeoVista
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l {0}
env:
CARTOPY_SHARE_DIR: ~/.local/share/cartopy
GEOVISTA_POOCH_MUTE: true
steps:
- uses: awalsh128/cache-apt-pkgs-action@v1.1.3
with:
packages: libgl1-mesa-glx xvfb
version: 3.0
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: git clone https://github.com/bjlittle/geovista.git --single-branch
- name: Install PyVista
run: pip install -ve . # pyvista
- name: Install GeoVista
run: pip install -ve .[test,exam,cmap] # geovista
working-directory: geovista
- name: Download cartopy assets
run: |
mkdir -p ${CARTOPY_SHARE_DIR}
python -m cartopy.feature.download physical --output ${CARTOPY_SHARE_DIR} --no-warn
- run: pytest
working-directory: geovista
trame:
name: Trame
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install PyVista
run: pip install -ve .[test]
- name: Install requirements
run: |
pip install -r examples_trame/requirements.txt
- name: Run examples
working-directory: examples_trame
run: pytest -v ./tests