-
Notifications
You must be signed in to change notification settings - Fork 382
130 lines (129 loc) · 3.5 KB
/
linux.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
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
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
runs-on: ubuntu-latest
if: ${{ !contains(github.ref, '/debian/') }}
container:
image: fedora:latest
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/[email protected]
with:
submodules: false
- name: Setup environment
run: |
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip psmisc
# sudo dnf downgrade -y mesa* --refresh
git submodule update --init --recursive
pip install -r requirements-dev.txt
- 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.py &
sleep 10
killall xvfb-run
debian:
name: Debian
runs-on: ubuntu-latest
strategy:
fail-fast: false
if: ${{ !contains(github.ref, '/fedora/') }}
steps:
- uses: actions/[email protected]
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
git submodule update --init --recursive
pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl
pip install -r requirements-dev.txt
- name: Run tests
run: |
Xvfb &
export DISPLAY=:0
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.py &
sleep 10
killall xvfb-run