Skip to content

Merge pull request #73 from FireDynamics/develop_kb #57

Merge pull request #73 from FireDynamics/develop_kb

Merge pull request #73 from FireDynamics/develop_kb #57

name: Run Robot Framework Tests
# This workflow gets triggered on pushes and pull requests to the master branch.
# Tests are not run at changes on the README file.
on:
push:
branches:
- master
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
# checkout code from the repository
- name: Checkout repository
uses: actions/checkout@v3
# Sets up the specified Python version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
# Install project dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Add LEDSA to PYTHONPATH
- name: Add LEDSA to PYTHONPATH
run: echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
# create folder for test reports
- name: Create folder for reports
run: mkdir reports
# run Robot Framework tests
- name: Run Robot Framework Tests
run: |
robot \
--outputdir reports \
ledsa/tests/AcceptanceTests
# If the tests fail, this step ensures the logs are uploaded for inspection
- name: Upload Robot Framework logs
# This condition ensures the step runs regardless of the test outcome
if: always()
uses: actions/upload-artifact@v2
with:
name: robot-framework-logs
path: results/