-
Notifications
You must be signed in to change notification settings - Fork 1
92 lines (87 loc) · 2.82 KB
/
pipeline.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
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
89
90
91
92
name: Pipeline Tests
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
schedule:
- cron: 0 0 * * *
permissions:
contents: read
jobs:
flake8:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U flake8 flake8-polyfill robotframework
- name: Analysing the code with flake8
run: |
flake8 $(git ls-files '*.py') --count --show-source --max-complexity=11 --statistics
pylint:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools_scm setuptools pylint robotframework pyyaml rpyc pydantic
- name: Analysing the code with pylint
run: |
pylint --module-naming-style=any $(git ls-files '*.py')
robot-framework:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
robotframework-version: [ '5.0.1', '6.0.2', '6.1', '7.0', 'latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
pip install -U setuptools_scm setuptools
- name: Install dependencies
run: |
pip install pyyaml pydantic
- name: Install robotframework latest
if: ${{ matrix.robotframework-version == 'latest' }}
run: |
pip install -U robotframework
- name: Install robotframework ${{ matrix.robotframework-version }}
if: ${{ matrix.robotframework-version != 'latest' }}
run: |
pip install robotframework==${{ matrix.robotframework-version }}
- name: Install RPyCRobotRemote
run: |
pip install -e .
- name: Executing Robot Framework Tests
env:
PYTHONPATH: 'test'
run: |
python test/server.py 2>&1 &
sleep 3
robot test/ 2>&1