Skip to content

Commit b3e3794

Browse files
Actions (#2594)
* Add experimental Linux builder * Install wxpython in ubuntu fix fedora git * Install git in fedora fix run * Add -y options * Try to install wxPython globally * add locato for ride.py * Fix xvfb install in Fedora, remove steps in Ubuntu * Add install pip to Fedora add SDL to Ubuntu * Remove which in Fedora correct SDL package to Ubuntu * Add wheel to Fedora, change xvfb-run to run in background * Add missing libs and bin * Add Xvfb server before running tests * Simplify Xvfb server and DISPLAY var * Try to run test in background * Fix Linux badge * Update README.adoc Fix Linux badge
1 parent d745f61 commit b3e3794

File tree

2 files changed

+121
-1
lines changed

2 files changed

+121
-1
lines changed

.github/workflows/linux.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: Linux
2+
on:
3+
push:
4+
branches-ignore:
5+
- '**/sources/**'
6+
- '**/windows/**'
7+
- '**/macos/**'
8+
paths-ignore:
9+
- '.github/workflows/sources.yml'
10+
- '.github/workflows/sonar.yml'
11+
- '.github/workflows/macos.yml'
12+
- '.github/workflows/windows.yml'
13+
- 'tools/**'
14+
- 'rtest/**'
15+
- 'doc/**'
16+
- '.appveyor.yml'
17+
- '.coveragerc'
18+
- '.gitattributes'
19+
- '.pylintrc'
20+
- '.travis.yml'
21+
- '.whitesource'
22+
- 'AUTHORS.txt'
23+
- 'BUILD.rest'
24+
- 'CHANGELOG.adoc'
25+
- 'CONTRIBUTING.adoc'
26+
- 'COPYRIGHT.txt'
27+
- 'LICENSE.txt'
28+
- 'MANIFEST.in'
29+
- 'README.adoc'
30+
- 'README.rest'
31+
- 'rfgen.py'
32+
- 'tox.ini'
33+
pull_request:
34+
paths-ignore:
35+
- '.github/workflows/sources.yml'
36+
- '.github/workflows/sonar.yml'
37+
- '.github/workflows/macos.yml'
38+
- '.github/workflows/windows.yml'
39+
- 'tools/**'
40+
- 'rtest/**'
41+
- 'doc/**'
42+
- '.appveyor.yml'
43+
- '.coveragerc'
44+
- '.gitattributes'
45+
- '.pylintrc'
46+
- '.travis.yml'
47+
- '.whitesource'
48+
- 'AUTHORS.txt'
49+
- 'BUILD.rest'
50+
- 'CHANGELOG.adoc'
51+
- 'CONTRIBUTING.adoc'
52+
- 'COPYRIGHT.txt'
53+
- 'LICENSE.txt'
54+
- 'MANIFEST.in'
55+
- 'README.adoc'
56+
- 'README.rest'
57+
- 'rfgen.py'
58+
- 'tox.ini'
59+
60+
jobs:
61+
fedora:
62+
name: Fedora
63+
runs-on: ubuntu-latest
64+
if: ${{ !contains(github.ref, '/debian/') }}
65+
container:
66+
image: fedora:latest
67+
options: --privileged
68+
steps:
69+
- uses: actions/[email protected]
70+
with:
71+
submodules: false
72+
- name: Configure container environment
73+
run: |
74+
sudo dnf update -y
75+
sudo dnf install -y git
76+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
77+
- name: Setup environment
78+
run: |
79+
sudo dnf install -y python3-wxpython4 xorg-x11-server-Xvfb python3-pip psmisc
80+
sudo -H pip install wheel
81+
sudo -H pip install -r requirements-dev.txt
82+
- name: Run tests
83+
run: |
84+
Xvfb &
85+
export DISPLAY=:0
86+
invoke test-ci &
87+
- name: Install and run
88+
run: |
89+
pip install .
90+
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
91+
sleep 10
92+
killall xvfb-run
93+
debian:
94+
name: Debian
95+
runs-on: ubuntu-latest
96+
strategy:
97+
fail-fast: false
98+
if: ${{ !contains(github.ref, '/fedora/') }}
99+
steps:
100+
- uses: actions/[email protected]
101+
with:
102+
submodules: false
103+
- name: Fetch tags
104+
run: |
105+
git fetch --prune --depth=1 --no-recurse-submodules
106+
- name: Setup environment and Run
107+
run: |
108+
sudo apt update -y
109+
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4
110+
sudo pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.0-cp310-cp310-linux_x86_64.whl
111+
sudo pip install -r requirements-dev.txt
112+
Xvfb &
113+
export DISPLAY=:0
114+
invoke test-ci
115+
pip install .
116+
which ride.py
117+
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
118+
sleep 10
119+
killall xvfb-run

README.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ Install current development version (**2.0.6dev#**) with:
4848

4949
== Unit testing statuses:
5050

51-
// Linux (py36, py37, py38, py39): image:https://app.travis-ci.com/HelioGuilherme66/RIDE.svg?branch=master[Unit Tests, link=https://app.travis-ci.com/github/HelioGuilherme66/RIDE]
51+
// Linux (py36, py37, py38, py39): image:https://app.travis-ci.com/HelioGuilherme66/RIDE.svg?branch=master[Unit Tests, link=https://app.travis-ci.com/github/HelioGuilherme66/RIDE]
52+
Linux (Fedora 38: py3.11, Ubuntu 22.04: py3.10): image:https://img.shields.io/github/actions/workflow/status/HelioGuilherme66/RIDE/linux.yml[Unit Tests, link=https://github.com/HelioGuilherme66/RIDE/actions/workflows/linux.yml]
5253

5354
Windows (Python 3.10): image:https://ci.appveyor.com/api/projects/status/github/HelioGuilherme66/RIDE?branch=master&svg=true[Unit Tests, link=https://ci.appveyor.com/project/HelioGuilherme66/ride]
5455

0 commit comments

Comments
 (0)