Add GitHub Actions workflow for automated testing and setup

This commit is contained in:
Sam 2025-05-31 19:25:46 -05:00
parent 34f790ca18
commit a8103af866
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0
tests.py Normal file
View File