Sam 9e7ad041b4
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 31s
Update test runner configuration to use copy link mode during installation to suppress warning
2025-06-03 20:21:43 -05:00

37 lines
807 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 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