Skip to content

Bump the trame group with 2 updates #10784

Bump the trame group with 2 updates

Bump the trame group with 2 updates #10784

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.10"
- 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!=6.6.1,!=6.6.2,!=6.6.3,!=6.7.0 PyQt6-Qt6!=6.6.1,!=6.6.2,!=6.6.3,!=6.7.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.10"
- 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!=6.6.1,!=6.6.2,!=6.6.3,!=6.7.0 PyQt6-Qt6!=6.6.1,!=6.6.2,!=6.6.3,!=6.7.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_FEATURE: "https://raw.githubusercontent.com/SciTools/cartopy/v0.22.x/tools/cartopy_feature_download.py"
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.10"
- 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: |
wget --quiet ${CARTOPY_FEATURE}
mkdir -p ${CARTOPY_SHARE_DIR}
python cartopy_feature_download.py 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.10"
- name: Install PyVista
run: pip install -ve .
- name: Install Trame examples
run: pip install -r examples_trame/requirements.txt
- run: |
pip install -r ../requirements_test.txt
pytest ./tests
working-directory: examples_trame