-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (37 loc) · 1.2 KB
/
testing.yml
File metadata and controls
46 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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