Skip to content

Improve Workflows #2953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/fedora_41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
git submodule update --init --recursive
source /home/wxpy/venvs/Py314/bin/activate
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride &
sleep 10
killall xvfb-run

14 changes: 7 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ on:
jobs:
fedora:
name: Fedora py313
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: ${{ !contains(github.ref, '/debian/') }}
container:
image: fedora:41
Expand Down Expand Up @@ -92,13 +92,13 @@ jobs:
run: |
git submodule update --init --recursive
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride &
sleep 10
killall xvfb-run

debian:
name: Debian
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
if: ${{ !contains(github.ref, '/fedora/') }}
Expand All @@ -113,12 +113,10 @@ jobs:
- name: Setup environment
run: |
sudo apt update -y
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4 wxpython-tools
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
pip install robotframework
pip install --force -U setuptools==69.5.1
- name: Run tests
run: |
Xvfb &
Expand All @@ -137,7 +135,9 @@ jobs:
- 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.py &
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride &
sleep 10
killall xvfb-run
10 changes: 5 additions & 5 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update ubuntu
run: sudo apt update -y
- name: Install missing library
run: sudo apt-get install libnotify4 libsdl1.2debian libsdl2.2 -y
run: sudo apt-get install libnotify4 libsdl1.2debian libsdl2.2 wxpython-tools -y
- name: Install xorg
run: sudo apt-get install -y xorg openbox
- name: Install Xvfb
Expand All @@ -27,18 +27,18 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install invoke and any other packages
run: pip install coverage invoke pytest
- name: Install wxPython
run: pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl
- name: Install RIDE dependencies
run: |
git submodule update --init --recursive
pip install -r requirements-dev.txt
pip install --force -U setuptools==69.5.1
pip install robotframework
- name: Run Xvfb
run: Xvfb :1 -noreset &
- name: Test Install RIDE
run: |
git submodule update --init --recursive
pip install -r requirements-dev.txt
pip install robotframework
pip install .
- name: Run RIDE unit-tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setuptools>=70.0.0
setuptools>=78.1.1
build
mockito
invoke
Expand All @@ -12,6 +12,7 @@ pytest
coverage
pytest-cov
pytest-order
packaging >= 24.2
# To make a relase you need asciidoc3 (a2x3)
# asciidoc3
# Include also normal project requirements.
Expand Down
Loading