mirror of
https://github.com/okalachev/flix.git
synced 2026-09-06 00:10:58 +00:00
Use pytest for testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user