forked from robotframework/SeleniumLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (65 loc) · 2.66 KB
/
CI.yml
File metadata and controls
69 lines (65 loc) · 2.66 KB
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
name: SeleniumLibrary CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.9, pypy-3.7]
rf-version: [3.2.2, 4.1.3]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} with Robot Framework ${{ matrix.rf-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start xvfb
run: |
export DISPLAY=:99.0
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
- name: Install dependencies
if: matrix.python-version != 'pypy-3.7'
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install dependencies for pypy
if: matrix.python-version == 'pypy-3.7'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install robotstatuschecker>=1.4
pip install requests robotframework-pabot
- name: Install RF ${{ matrix.rf-version }}
run: |
pip install -U --pre robotframework==${{ matrix.rf-version }}
- name: Generate stub file for ${{ matrix.python-version }}
if: matrix.python-version != 'pypy-3.7'
run: |
invoke gen-stub
- name: Debugging
if: matrix.python-version != 'pypy-3.7'
run: |
which python
- name: Run tests with headless Chrome and with PyPy
if: matrix.python-version == 'pypy-3.7'
run: |
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
- name: Run tests with headless Chrome and with Python != 3.8
if: matrix.python-version != '3.8' && matrix.python-version != 'pypy-3.7'
run: |
xvfb-run --auto-servernum python atest/run.py --zip headlesschrome
- name: Run tests normal Chrome with Python 3.8
if: matrix.python-version == '3.8' && matrix.rf-version != '3.2.2' && matrix.python-version != 'pypy-3.7'
run: |
xvfb-run --auto-servernum python atest/run.py --zip chrome
- name: Run tests with Selenium Grid
if: matrix.python-version == '3.8' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.7'
run: |
wget --no-verbose --output-document=./selenium-server-standalone.jar http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
sudo chmod u+x ./selenium-server-standalone.jar
xvfb-run --auto-servernum python atest/run.py --zip headlesschrome --grid True
- uses: actions/upload-artifact@v1
if: success() || failure()
with:
name: Failed Test results
path: atest/zip_results