Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests

on:
push:
branches: [master]
pull_request:

jobs:
unittest:
name: Unit tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
Comment thread
timon0305 marked this conversation as resolved.
Outdated
with:
python-version: '3.12'

- name: Install runtime + test dependencies
# Only what the tests actually exercise. `pywebview` from requirements.txt
# is the desktop-launcher dep and pulls GTK / Qt system packages on Linux
# — out of scope for the unittest suite, so it's deliberately omitted here.
run: |
python -m pip install --upgrade pip
python -m pip install 'flask>=3.0' 'fpdf2>=2.7'

- name: Run unittest suite
run: python -m unittest discover tests -v