Skip to content

Fix test and update actions #71

Fix test and update actions

Fix test and update actions #71

Workflow file for this run

name: SOAP-Library
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-robot-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
env:
ROBOT_TESTS_DIR: ${{ github.workspace }}/Tests
ROBOT_REPORTS_DIR: ${{ github.workspace }}/reports
with:
python-version: '3.10'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run Robot File
run: robot -d ./reports -e offline ./Tests/keyword_tests.robot
- name: Upload test results
uses: actions/upload-artifact@v1
if: always()
with:
name: robot_reports
path: reports
generate-robot-report:
if: always()
needs: [run-robot-tests]
runs-on: ubuntu-latest
steps:
- name: Download reports
uses: actions/download-artifact@v1
with:
name: robot_reports
- name: Send report to commit
uses: joonvena/robotframework-reporter-action@v2.4
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
report_path: /robot_reports