Sam b52690549b
Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 7s
Enhance pre-commit configuration and update test workflow for better results reporting
2025-05-31 19:54:05 -05:00

36 lines
751 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
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tests
run: uv run pytest tests --junit-xml=pytest-results.xml
- name: Publish Test Results
if: always()
uses: actions/upload-test-results@v2
with:
files: pytest-results.xml