Sam 7fc550f4dd
Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 47s
Update test results upload action to use dorny/test-reporter and specify artifact details
2025-05-31 20:17:31 -05:00

40 lines
1002 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
- name: Run tests
run: 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
- uses: dorny/test-reporter@v2
with:
artifact: pytest-results # artifact name
name: Pytest Tests # Name of the check run which will be created
path: '*.xml' # Path to test results (inside artifact .zip)
reporter: jest-junit # Format of test results