Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 8m18s
40 lines
970 B
YAML
40 lines
970 B
YAML
name: Build Simulation and Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
tests:
|
|
name: Run All Tests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
|
|
- name: Set up Python
|
|
run: uv python install
|
|
|
|
- name: Install system dependencies
|
|
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
|
|
|
|
- name: Install the project
|
|
run: uv sync --locked --all-extras --dev --link-mode=copy
|
|
|
|
- name: Run tests
|
|
run: PYTHONPATH=$(pwd) uv run pytest tests --junit-xml=pytest-results.xml
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pytest-results
|
|
path: pytest-results.xml
|
|
retention-days: 5
|
|
|
|
- name: Print test summary
|
|
if: always()
|
|
run: PYTHONPATH=$(pwd) uv run pytest tests --tb=short || true |