-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (56 loc) · 1.71 KB
/
main.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
name: CI
on:
push:
branches-ignore:
- "releases/**"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
plone:
- "6.0-latest"
# see testing.py for layer names
test_layer:
- "IntegrationTesting"
- "AcceptanceTestingPortlet_AjaxDisabled"
- "AcceptanceTestingPortlet_AjaxEnabled"
- "AcceptanceTesting_Tiles"
steps:
- uses: actions/checkout@v3
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }}
id: setup
uses: plone/[email protected]
with:
python-version: ${{ matrix.python }}
plone-version: ${{ matrix.plone }}
- name: Install package
run: |
make VENV=off install
- name: Install Chromedriver
uses: nanasess/setup-chromedriver@v2
if: matrix.test_layer != 'IntegrationTesting'
- name: Start Browser
if: matrix.test_layer != 'IntegrationTesting'
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1920x1280x24 > /dev/null 2>&1 &
- name: Run tests
run: |
VENV=off TEST_LAYER=${{ matrix.test_layer}} ROBOT_BROWSER=headlesschrome make test-layer-ignore-warnings
- name: Save Robotframework Log
uses: actions/upload-artifact@v3
# safe artifacts only for failing tests
if: ${{ failure() }}
with:
name: robottest-logfiles-${{ matrix.test_layer }}-${{ matrix.plone }}-${{ matrix.python }}
path: |
test_*
robot_*