-
Notifications
You must be signed in to change notification settings - Fork 2
95 lines (93 loc) · 3.52 KB
/
test.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: test-wf
on: pull_request
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v1 # Would be nice to bump this? Regressions.
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install chromium-browser xvfb
timeout-minutes: 4 # because sometimes it dies
#- uses: ./.github/actions/ # it would be nice but it doesn't support timeout-minutes
- name: Install choreographer
run: pip install .[dev]
- name: DTDoctor
run: dtdoctor --no-run
timeout-minutes: 1
- name: Test Process Control DEBUG
if: runner.debug
run: xvfb-run pytest -W error -vv -rA --capture=tee-sys tests/test_process.py
timeout-minutes: 5
- name: Test Process Control
if: ${{ ! runner.debug }}
run: xvfb-run pytest -W error -n auto -v -rfE --capture=fd tests/test_process.py
timeout-minutes: 2
- name: Test The Rest DEBUG
if: runner.debug
run: pytest -W error -vvv -rA --capture=tee-sys --ignore=tests/test_process.py
timeout-minutes: 5
- name: Test The Rest
if: ${{ ! runner.debug }}
run: pytest -W error -n auto -v -rfE --ignore=tests/test_process.py
timeout-minutes: 2
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: choco install googlechrome -y --ignore-checksums
timeout-minutes: 4 # because sometimes it dies
#- uses: ./.github/actions/
- name: Install choreographer
run: pip install .[dev]
- name: DTDoctor
run: dtdoctor --no-run
timeout-minutes: 1
- name: Test Process Control DEBUG
if: runner.debug
run: pytest -W error -vv -rA --capture=tee-sys tests/test_process.py
timeout-minutes: 5
- name: Test Process Control
if: ${{ ! runner.debug }}
run: pytest -W error -n auto -v -rFe --capture=fd tests/test_process.py
timeout-minutes: 2
- name: Test The Rest DEBUG
if: runner.debug
run: pytest -W error -vvv -rA --capture=tee-sys --ignore=tests/test_process.py
timeout-minutes: 5
- name: Test The Rest
if: ${{ ! runner.debug }}
run: pytest -W error -n auto -v -rfE --ignore=tests/test_process.py
timeout-minutes: 2
test-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: brew install google-chrome
timeout-minutes: 4 # because sometimes it dies
#- uses: ./.github/actions/
- name: Install choreographer
run: pip install .[dev]
- name: DTDoctor
run: dtdoctor --no-run
timeout-minutes: 1
- name: Test Process Control DEBUG
if: runner.debug
run: pytest -W error -vv -rA --capture=tee-sys tests/test_process.py
timeout-minutes: 5
- name: Test Process Control
if: ${{ ! runner.debug }}
run: pytest -W error -n auto -v -rFe --capture=fd tests/test_process.py
timeout-minutes: 2
- name: Test The Rest DEBUG
if: runner.debug
run: pytest -W error -vvv -rA --capture=tee-sys --ignore=tests/test_process.py
timeout-minutes: 5
- name: Test The Rest
if: ${{ ! runner.debug }}
run: pytest -W error -n auto -v -rfE --ignore=tests/test_process.py
timeout-minutes: 2