Add strategy.job-index to artifact name #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
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@v4 | |
with: | |
name: robot-tests-logs-${{ strategy.job-index }} | |
path: | | |
recipe_tests | |
recipe_tests_pabot | |
if: always() |