-
-
Notifications
You must be signed in to change notification settings - Fork 23
88 lines (80 loc) · 2.92 KB
/
Regression_Tests_Agent.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: Regression Tests - Agent
on: workflow_call
jobs:
Agent:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Pip Update
run: python -m pip install --upgrade pip
- name: Update Robot Tag
shell: python
run: |
import os
tag = "${{ matrix.platform }}"
tagarr = tag.split("-")
tag = "{}-latest".format(tagarr[0])
env_file = os.getenv('GITHUB_ENV')
with open(env_file, "a") as myfile:
myfile.write("tag={}\n".format(tag))
- name: Download packages to dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Show Dist UM
if: ${{ matrix.platform != 'windows-latest' }}
run: |
ls -la dist
- name: Show Dist W
if: ${{ matrix.platform == 'windows-latest' }}
run: |
dir dist
- name: Install Agent from dist UM
if: ${{ matrix.platform != 'windows-latest' }}
run: pip install rfswarm_agent-*.whl
working-directory: ./dist
- name: Install Agent from dist W
if: ${{ matrix.platform == 'windows-latest' }}
shell: cmd
run: for %%f in (rfswarm_agent-*.whl) do pip install %%f
working-directory: ./dist
- name: Install Manager from dist (for testing Issues) UM
if: ${{ matrix.platform != 'windows-latest' }}
run: pip install rfswarm_manager-*.whl
working-directory: ./dist
- name: Install Manager from dist (for testing Issues) W
if: ${{ matrix.platform == 'windows-latest' }}
shell: cmd
run: for %%f in (rfswarm_manager-*.whl) do pip install %%f
working-directory: ./dist
- run: pip install -r Tests/Regression/Agent/pip_requirements.txt
- name: Robot Framework
run: >
robot --include ${{ env.tag }}
--outputdir Tests/Regression/Agent/Logs/${{ matrix.platform }}_${{ matrix.python }}
Tests/Regression/Agent
- name: Archive Agent Logs
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: Agent-${{ matrix.platform }}-${{ matrix.python }}
path: Tests/Regression/Agent/Logs/${{ matrix.platform }}_${{ matrix.python }}
retention-days: 15
- name: Archive Agent Logs (longer retention if failed)
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: Agent-${{ matrix.platform }}-${{ matrix.python }}
path: Tests/Regression/Agent/Logs/${{ matrix.platform }}_${{ matrix.python }}
retention-days: 90