Skip to content

Parse saber configuration safely with the updated py2saber reader #36

Parse saber configuration safely with the updated py2saber reader

Parse saber configuration safely with the updated py2saber reader #36

Workflow file for this run

name: Tests
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Qt system dependencies
run: |
sudo apt-get update
sudo apt-get install --yes libegl1
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run unit tests
env:
QT_QPA_PLATFORM: offscreen
run: python -m unittest discover -s tests -v
- name: Check Python syntax
run: |
python -m compileall -q \
version_compare.py \
update_checker.py \
tests