34 lines
751 B
YAML
34 lines
751 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Python 3.11 / Windows
|
|
runs-on: windows-latest
|
|
env:
|
|
QT_QPA_PLATFORM: offscreen
|
|
PYTHONUTF8: "1"
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
cache: pip
|
|
cache-dependency-path: requirements.txt
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r requirements.txt
|
|
|
|
- name: Syntax check
|
|
run: python -m compileall app main.py
|
|
|
|
- name: Unit and GUI tests
|
|
run: python -m unittest discover -s tests |