-
Notifications
You must be signed in to change notification settings - Fork 17
59 lines (56 loc) · 2.17 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
name: Push / pull CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
robot_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
name: Run Robot Framework Tests
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \
&& CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version
- name: Install Tesseract
run: |
sudo apt-get update && sudo apt-get install -y \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-ces
- name: display
run: DISPLAY=:0
- name: Robot Framework
run: |
python -m pip install --upgrade pip
pip install robotframework
pip install robotframework-seleniumlibrary
pip install pandas
pip install numpy
pip install Pillow
pip install imutils
pip install scikit-image
pip install opencv-python
pip install PyMuPDF
pip install WatchUI
- name: Run headless test
uses: GabrielBB/[email protected]
with:
run: python3 -m robot tests/test.robot