-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.83 KB
/
Copy pathtests.yml
File metadata and controls
68 lines (57 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: MethodenAnalyser smoke tests
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
name: Smoke (${{ matrix.runner }} / Python ${{ matrix.python-version }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: windows-2025-vs2026
python-version: "3.10"
- runner: windows-2025-vs2026
python-version: "3.11"
- runner: windows-2025-vs2026
python-version: "3.12"
- runner: windows-2025-vs2026
python-version: "3.13"
- runner: ubuntu-latest
python-version: "3.11"
- runner: ubuntu-latest
python-version: "3.13"
- runner: macos-26
python-version: "3.11"
- runner: macos-26
python-version: "3.13"
env:
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest ruff
- name: Run Ruff Lint Check
run: ruff check .
- name: Compile Python files
run: python -m py_compile MethodenAnalyser3.py manage_translations.py translator.py webapp/server.py
- name: Import analyzer module and Tk runtime
run: python -c "import tkinter as tk; import MethodenAnalyser3 as m; print(f'Tk {tk.TkVersion} / threshold {m.SIMILARITY_THRESHOLD}')"
- name: Run test suite via pytest
run: pytest -v