Skip to content

Commit

Permalink
macOS windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaubier committed Feb 3, 2025
1 parent f65dbac commit 1a5c9f9
Showing 1 changed file with 54 additions and 4 deletions.
58 changes: 54 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest] # TODO add ubuntu-latest, windows-latest, macos-latest
os: [macos-latest, windows-latest] # ubuntu-latest
python-version: ['3.12']

steps:
Expand All @@ -24,14 +24,64 @@ jobs:
with:
python-version: '3.12'

- name: "Install Windows-Mesa OpenGL DLL"
if: runner.os == 'Windows'
run: |
curl -L --output mesa.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/24.0.6/mesa3d-24.0.6-release-msvc.7z
7z x mesa.7z -o*
powershell.exe mesa\systemwidedeploy.cmd 1
- name: "Install Linux VirtualDisplay"
if: runner.os == 'Linux'
run: |
sudo apt-get update -y --allow-releaseinfo-change
sudo apt-get install --no-install-recommends -y \
libxkbcommon-x11-0 \
x11-utils \
libyaml-dev \
libegl1 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libopengl0 \
libxcb-cursor0
- name: Installing CoperniFUS
run: python -m pip install -e .

- name: Installing test dependencies
run: pip install pytest pytest-qt

# - name: Download test BrainGlobe atlas
# run: brainglobe install -a example_mouse_100um
- name: "XVFB Display Info"
if: runner.os == 'Linux'
run: |
xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -m pyqtgraph.util.glinfo
xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -m pyqtgraph.util.get_resolution
- name: "Display Info"
if: runner.os != 'Linux'
run: |
python -m pyqtgraph.util.glinfo
python -m pyqtgraph.util.get_resolution
- name: "Debug Info"
run: |
echo python location: `which python`
echo python version: `python --version`
echo pytest location: `which pytest`
echo installed packages
python -m pip list
echo pyqtgraph system info
python -c "import pyqtgraph as pg; pg.systemInfo()"
shell: bash
env:
QT_DEBUG_PLUGINS: 1

- name: Download test BrainGlobe atlas
run: brainglobe install -a example_mouse_100um

- name: Testing CoperniFUS
run: pytest tests/test_viewer.py

0 comments on commit 1a5c9f9

Please sign in to comment.