Skip to content

Update node-version from [16.x] to [16] (#87) #143

Update node-version from [16.x] to [16] (#87)

Update node-version from [16.x] to [16] (#87) #143

Workflow file for this run

# 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.8', '3.9', '3.10']
node-version: [16]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
if: matrix.python-version != 3.6
- 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@v2
with:
name: robot-tests-logs
path: |
recipe_tests
recipe_tests_pabot
if: always()