github workflow: Only run GUI tests on Windows and MacOS #162
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |