-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (44 loc) · 1.18 KB
/
python-app.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
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/[email protected]
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
report_path: /robot_reports