-
Notifications
You must be signed in to change notification settings - Fork 390
145 lines (143 loc) · 3.87 KB
/
linux.yml
File metadata and controls
145 lines (143 loc) · 3.87 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Linux
on:
push:
branches-ignore:
- '**/sources/**'
- '**/windows/**'
- '**/macos/**'
paths-ignore:
- '.github/workflows/sources.yml'
- '.github/workflows/sonar.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- 'tools/**'
- 'rtest/**'
- 'doc/**'
- '.appveyor.yml'
- '.coveragerc'
- '.gitattributes'
- '.pylintrc'
- '.travis.yml'
- '.whitesource'
- 'AUTHORS.txt'
- 'BUILD.rest'
- 'CHANGELOG.adoc'
- 'CONTRIBUTING.adoc'
- 'COPYRIGHT.txt'
- 'LICENSE.txt'
- 'MANIFEST.in'
- 'README.adoc'
- 'README.rest'
- 'rfgen.py'
- 'tox.ini'
pull_request:
paths-ignore:
- '.github/workflows/sources.yml'
- '.github/workflows/sonar.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- 'tools/**'
- 'rtest/**'
- 'doc/**'
- '.appveyor.yml'
- '.coveragerc'
- '.gitattributes'
- '.pylintrc'
- '.travis.yml'
- '.whitesource'
- 'AUTHORS.txt'
- 'BUILD.rest'
- 'CHANGELOG.adoc'
- 'CONTRIBUTING.adoc'
- 'COPYRIGHT.txt'
- 'LICENSE.txt'
- 'MANIFEST.in'
- 'README.adoc'
- 'README.rest'
- 'rfgen.py'
- 'tox.ini'
jobs:
fedora:
name: Fedora py313
runs-on: ubuntu-22.04
if: ${{ !contains(github.ref, '/debian/') }}
container:
image: fedora:41
options: --privileged
steps:
- name: Configure container environment
run: |
sudo dnf update -y
sudo dnf install -y git
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- uses: actions/checkout@v3.3.0
with:
submodules: false
- name: Setup environment
run: |
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc
# sudo dnf downgrade -y mesa* --refresh
git submodule update --init --recursive
python -m pip install -U pip
pip install -r requirements-dev.txt
pip install robotframework
- name: Run tests
run: |
Xvfb &
export DISPLAY=:0
export GITHUB_ACTIONS=True
git submodule update --init --recursive
invoke test-ci
- name: Install and run
run: |
git submodule update --init --recursive
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride &
sleep 10
killall xvfb-run
debian:
name: Debian
runs-on: ubuntu-latest
strategy:
fail-fast: false
if: ${{ !contains(github.ref, '/fedora/') }}
steps:
- uses: actions/checkout@v3.3.0
with:
submodules: false
- name: Fetch tags
run: |
git fetch --prune --depth=1 --recurse-submodules
git submodule update --init --recursive
- name: Setup environment
run: |
sudo apt update -y
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4 wxpython-tools
git submodule update --init --recursive
python -m pip install -U pip
pip install -r requirements-dev.txt
pip install robotframework
- name: Run tests
run: |
Xvfb &
export DISPLAY=:0
git submodule update --init --recursive
invoke test-ci
- uses: actions/upload-artifact@v4
with:
name: coverage-report
include-hidden-files: true
path: |
.coverage.1
.coverage.2
.coverage-reports/coverage.xml
.coverage-reports/htmlcov
- name: Install and run
run: |
git submodule update --init --recursive
pip install -r requirements-dev.txt
pip install robotframework
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride &
sleep 10
killall xvfb-run