-
-
Notifications
You must be signed in to change notification settings - Fork 13
59 lines (46 loc) · 1.34 KB
/
test-ui.yml
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
# This workflow will install Python dependencies, lint
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: ["trunk"]
pull_request:
branches: ["trunk"]
permissions:
contents: read
jobs:
gui-tests:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -Ur requirements.txt
- name: Run Mac GUI tests
run: |
CI_MODE=YES python setup.py py2app --alias | cat
./dist/CiPomodouroboros.app/Contents/MacOS/CiPomodouroboros
model-tests:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
- name: Check
run: |
mypy src
- name: Test
run: |
trial --rterrors --reporter=verbose -j auto pomodouroboros.model.test