-
Notifications
You must be signed in to change notification settings - Fork 53
59 lines (56 loc) · 2.04 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
# This workflow will run Robot Framework examples and perform static code analysis on robot code
name: Continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11']
node-version: [20]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U -r tests/requirements-${{ matrix.python-version }}.txt
webdrivermanager firefox chrome
- name: Init Browser
run:
rfbrowser init
if: matrix.python-version != 3.6
- name: Run Robocop
run:
robocop -r rules_by_id --configure return_status:quality_gate:W=-1 --exclude missing-doc-* --ignore section_99\* --ext-rules tests/robocop_rules.py src
if: always()
- name: Run Robot tests
run:
python -m robot --exclude pabot --include py${{ matrix.python-version }} --exclude casestudy --exclude no-ci-testing --outputdir recipe_tests src
if: always()
- name: Run Robot parallel tests
run:
pabot --testlevelsplit --processes 4 --command python -m robot --end-command --include pabotANDpy${{ matrix.python-version }} --exclude casestudy --exclude no-ci-testing --outputdir recipe_tests_pabot src
if: always()
- name: Save test results
uses: actions/upload-artifact@v4
with:
name: robot-tests-logs-${{ strategy.job-index }}
path: |
recipe_tests
recipe_tests_pabot
if: always()