github workflow: Update #158
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] | ||
| 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: apt install -y libegl-dev | ||
| - name: Set up Python | ||
| shell: pwsh | ||
| run: uv sync --extra gui | ||
| - name: Test with pytest | ||
| shell: pwsh | ||
| run: | | ||
| uv run pytest -v -rs tests | ||