-
Notifications
You must be signed in to change notification settings - Fork 343
221 lines (198 loc) · 7.79 KB
/
setup.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: Setup tests
on:
# Runs at 5:00 UTC on Mondays
schedule:
- cron: "0 5 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
user-installation:
name: User installation commands
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.x]
fail-fast: false
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing Avocado
run: python3 setup.py install --user
- name: Installing plugins
run: |
python3 setup.py plugin --install=golang --user
python3 setup.py plugin --install=html --user
python3 setup.py plugin --install=result_upload --user
python3 setup.py plugin --install=resultsdb --user
python3 setup.py plugin --install=robot --user
python3 setup.py plugin --install=varianter_cit --user
python3 setup.py plugin --install=varianter_pict --user
python3 setup.py plugin --install=varianter_yaml_to_mux --user
- name: Avocado version
run: avocado --version
- name: Avocado smoketest
run: avocado run examples/tests/passtest.py
- name: Avocado two tests
run: avocado run /usr/bin/true examples/tests/passtest.py
- run: echo "🥑 This job's status is ${{ job.status }}."
system-wide-installation:
name: System wide installation commands
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.x]
fail-fast: false
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installing Avocado
run: python3 setup.py install
- name: Installing plugins
run: |
python3 setup.py plugin --install=golang
python3 setup.py plugin --install=html
python3 setup.py plugin --install=result_upload
python3 setup.py plugin --install=resultsdb
python3 setup.py plugin --install=robot
python3 setup.py plugin --install=varianter_cit
python3 setup.py plugin --install=varianter_pict
python3 setup.py plugin --install=varianter_yaml_to_mux
- name: Avocado version
run: avocado --version
- name: Avocado smoketest
run: avocado run examples/tests/passtest.py
- name: Avocado two tests
run: avocado run /usr/bin/true examples/tests/passtest.py
- run: echo "🥑 This job's status is ${{ job.status }}."
devel-user-installation:
name: Developer user commands
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.x]
fail-fast: false
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
- name: Installing Avocado in develop mode
run: python3 setup.py develop --user
- name: Avocado version
run: avocado --version
- name: Avocado smoketest
run: avocado run examples/tests/passtest.py
- name: Avocado build manpage
run: python3 setup.py man
- name: Tree static check, unittests and fast functional tests
run: python3 setup.py test
- name: Uninstall avocado
run: python3 setup.py develop --user --uninstall
- run: echo "🥑 This job's status is ${{ job.status }}."
devel-wide-system-installation:
name: Developer system wide commands
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.x]
fail-fast: false
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
- name: Installing Avocado in develop mode
run: python3 setup.py develop
- name: Avocado version
run: avocado --version
- name: Avocado smoketest
run: avocado run examples/tests/passtest.py
- name: Avocado build manpage
run: python3 setup.py man
- name: Tree static check, unittests and fast functional tests
run: python3 setup.py test
- name: Uninstall avocado
run: python3 setup.py develop --uninstall
- run: echo "🥑 This job's status is ${{ job.status }}."
virtualenv-installation:
name: Virtualenv installation
runs-on: ubuntu-20.04
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y python3-virtualenv
- name: virtualenv
run: |
python3 -m venv env
source env/bin/activate
python3 setup.py install
python3 setup.py plugin --install=golang
python3 setup.py plugin --install=html
python3 setup.py plugin --install=result_upload
python3 setup.py plugin --install=resultsdb
python3 setup.py plugin --install=robot
python3 setup.py plugin --install=varianter_cit
python3 setup.py plugin --install=varianter_pict
python3 setup.py plugin --install=varianter_yaml_to_mux
avocado --version
avocado run examples/tests/passtest.py
deactivate
- run: echo "🥑 This job's status is ${{ job.status }}."
devel-virtualenv-installation:
name: Developer Virtualenv installation
runs-on: ubuntu-20.04
steps:
- run: echo "Job triggered by a ${{ github.event_name }} event on branch is ${{ github.ref }} in repository is ${{ github.repository }}, runner on ${{ runner.os }}"
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y python3-virtualenv
- name: virtualenv
run: |
python3 -m venv env
source env/bin/activate
pip install -r requirements-dev.txt
python3 setup.py develop
avocado --version
avocado run examples/tests/passtest.py
python3 setup.py test --skip static-checks
deactivate
- run: echo "🥑 This job's status is ${{ job.status }}."