Skip to content

github workflow: Only run GUI tests on Windows and MacOS #162

github workflow: Only run GUI tests on Windows and MacOS

github workflow: Only run GUI tests on Windows and MacOS #162

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Louisa Marie Kienesberger <e11775781@student.tuwien.ac.at>
# SPDX-FileCopyrightText: 2022 Lukas Schrangl <lukas.schrangl@tuwien.ac.at>
#
# SPDX-License-Identifier: BSD-3-Clause
name: sdt-python test suite
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macOS, windows]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
python-version: "3.13" # until numba supports something newer
- name: Install Linux libraries
shell: pwsh
if: "${{ matrix.os == 'ubuntu' }}"
run: sudo apt-get install -y libegl-dev
- name: Set up Python
shell: pwsh
run: uv sync --extra gui
- name: Test with pytest, no GUI tests
shell: pwsh
run: |
uv run pytest -v -rs --ignore=tests/test_gui tests
- name: Test with pytest, GUI tests only
shell: pwsh
if: "${{ matrix.os != 'ubuntu' }}" # these segfault on Ubuntu
run: |
uv run pytest -v -rs tests/test_gui