-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.27 KB
/
tests.yml
File metadata and controls
48 lines (40 loc) · 1.27 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
name: MethodenAnalyser smoke tests
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
smoke:
name: Smoke (${{ matrix.os }} / Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.12"
- os: ubuntu-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.11"
env:
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- 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 unittest smoke suite
run: python -m unittest discover -s tests -v