-
Notifications
You must be signed in to change notification settings - Fork 34
97 lines (93 loc) · 2.84 KB
/
tkltest_ui_ci.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
name: TackleTest-UI CI
on:
push:
paths-ignore:
- 'tkltest/unit/**'
- 'tkltest-lib/pom.xml'
- 'doc/**'
- 'experiment/**'
- 'setup/tkltestunit**'
- 'test/unit/**'
- '.github/workflows/tkltest_unit_ci.yml'
- '.github/workflows/release**'
- '.gitattributes'
- '.gitignore'
- '**.md'
pull_request:
paths-ignore:
- 'tkltest/unit/**'
- 'tkltest-lib/pom.xml'
- 'doc/**'
- 'experiment/**'
- 'setup/tkltestunit**'
- 'test/unit/**'
- '.github/workflows/tkltest_unit_ci.yml'
- '.github/workflows/release**'
- '.gitattributes'
- '.gitignore'
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install prerequisites
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y libgtk2.0-0 chromium-chromedriver
sudo npm install -g bats
bats --version
chromedriver --version
- name: Download Java libraries
run: |
cd tkltest-lib
./download_lib_jars_ui.sh
cd ..; ls tkltest-lib/*
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- name: Pull test webapps
run: |
git submodule init
git submodule update
- name: Install tkltest-ui command
run: |
python -m venv venv
source venv/bin/activate
cp setup/tkltestui.setup.py ./setup.py
pip install .
which tkltest-ui
# - name: Run labeling unit tests
# run: |
# source venv/bin/activate
# nosetests test/ui/heuristic_labels_test.py
- name: Run tkltest-ui help/config tests
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli.bats
- name: Run tkltest-ui generate/execute tests - petclinic
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli_petclinic.bats
- name: Run tkltest-ui generate/execute tests - addressbook
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli_addressbook.bats
- name: Run tkltest-ui help/config tests using docker-compose
run: |
bats --print-output-on-failure test/ui/test_cli_docker.bats
# - name: Run tkltest-ui generate/execute tests using docker-compose - petclinic
# run: |
# bats test/ui/test_cli_docker_petclinic.bats
- name: Run tkltest-ui generate/execute tests using docker-compose - addressbook
run: |
bats --print-output-on-failure test/ui/test_cli_docker_addressbook.bats