forked from Tribler/tribler
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (63 loc) · 1.81 KB
/
application_tester.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
name: GUI test
on:
workflow_call:
inputs:
python-version:
default: 3.8
type: string
required: false
matrix:
default: '{"os":["windows-latest", "macos-latest", "ubuntu-latest"]}'
type: string
required: false
ref:
default: ${{ github.ref }}
type: string
required: false
permissions:
contents: read
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: ${{fromJson(inputs.matrix)}}
defaults:
run:
shell: bash
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
ref: ${{inputs.ref}}
- name: Create python environment
uses: ./.github/actions/pyenv
with:
python-version: ${{inputs.python-version}}
requirements: requirements.txt
custom_cache_key_element: ${{inputs.ref}}
- name: Add Tribler to PYTHONPATH
uses: ./.github/actions/add-pythonpath
with:
path: ./src
- name: Add Application Tester to PYTHONPATH
uses: ./.github/actions/add-pythonpath
with:
path: ./scripts/application_tester
- name: Install dependencies (Win)
if: runner.os == 'Windows'
uses: ./.github/actions/windows_dependencies
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install pyqt5-dev-tools
- name: Setup headless display (Linux)
if: runner.os == 'Linux'
uses: pyvista/setup-headless-display-action@v1
- name: Application Tester
timeout-minutes: 5
env:
CORE_API_PORT: 20100
run: |
python ./scripts/application_tester/main.py -p "python src/run_tribler.py" --fragile -d 120