github workflows: Install libegl1 on Linux #107
Workflow file for this run
This file contains 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 <[email protected]> | |
# SPDX-FileCopyrightText: 2022 Lukas Schrangl <[email protected]> | |
# | |
# 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@v2 | |
- name: Install system packages | |
uses: amitie10g/install-package@v1 | |
with: | |
apt: libegl1 | |
- name: Set up Python | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
use-mamba: true | |
miniforge-version: latest | |
miniforge-variant: Mambaforge | |
environment-file: tests/conda-env.yml | |
- name: Conda info | |
shell: pwsh | |
run: conda info | |
- name: Lint with flake8 | |
shell: pwsh | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. | |
flake8 . --count --exit-zero --max-complexity=10 --statistics | |
- name: Test with pytest | |
shell: pwsh | |
run: | | |
$os = "${{ runner.os }}" | |
if ( $os -eq "Linux") { | |
pytest -v --ignore=tests/test_gui/ tests/ | |
} else { | |
pytest -v tests/ | |
} |