Use pytest for testing

This commit is contained in:
Oleg Kalachev
2026-08-28 19:18:58 +03:00
parent e1209a0fb8
commit cc49718a60
2 changed files with 42 additions and 39 deletions
+5 -4
View File
@@ -82,15 +82,16 @@ jobs:
run: sudo apt-get install -y libsdl2-dev
- name: Build simulator
run: make build_simulator
- name: Install pyflix requirements
run: sudo apt install -y python3-pip && pip3 install -r tools/requirements.txt
- name: Run simulator
- name: Install Python requirements
run: sudo apt install -y python3-pip && pip3 install -r tools/requirements.txt && pip3 install pytest
- name: Run simulator and tests
env:
GAZEBO_MODEL_PATH: ${{ github.workspace }}/gazebo/models
GAZEBO_PLUGIN_PATH: ${{ github.workspace }}/gazebo/build
GAZEBO_MODEL_DATABASE_URI: '' # disable downloading models
run: |
gzserver --verbose gazebo/flix.world &
timeout -k 10s 120s tools/test.py
pytest --capture=no --verbose tools/test.py
- uses: actions/upload-artifact@v7
with:
name: gazebo-plugin-binary