forked from strictdoc-project/strictdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (86 loc) · 2.46 KB
/
end2end-tests.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: "StrictDoc - End-to-end tests"
on:
pull_request:
branches: [ "**" ]
# UI tests take 10+ minutes and will continue to grow.
# Reducing the trigger to only changes in the Web frontend-related code.
paths:
- 'strictdoc/export/html/**'
- 'strictdoc/server/**'
- 'tests/end2end/**'
jobs:
tests_end2end_macos:
name: E2E - macOS
runs-on: macos-13
strategy:
matrix:
shard: [
"1/4", "2/4",
"3/4", "4/4",
]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install minimal Python packages
run: |
pip install -r requirements.bootstrap.txt
- name: Run end-to-end tasks
run: |
invoke test-end2end --long-timeouts --shard=${{ matrix.shard }} --exit-first
tests_end2end_linux:
name: E2E - Linux
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install minimal Python packages
run: |
pip install -r requirements.bootstrap.txt
- name: Run end-to-end tasks
run: |
invoke test-end2end --long-timeouts --exit-first
build:
name: E2E - Windows
runs-on: windows-latest
strategy:
matrix:
shard: [
"1/4", "2/4",
"3/4", "4/4",
]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install minimal Python packages
run: |
pip install -r requirements.bootstrap.txt
- name: "Windows specific: Install StrictDoc's dependencies"
run: |
python developer/pip_install_strictdoc_deps.py
- name: "Windows specific: Install Check dependencies (everything for test)"
run: |
pip install -r requirements.check.txt
- name: Run end-to-end tasks
run: |
invoke test-end2end --long-timeouts --exit-first --shard=${{ matrix.shard }}