Enhance pre-commit configuration and update test workflow for better results reporting
Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 7s

This commit is contained in:
Sam 2025-05-31 19:54:05 -05:00
parent c3b0a12c32
commit b52690549b
2 changed files with 20 additions and 2 deletions

View File

@ -27,4 +27,10 @@ jobs:
run: uv sync --locked --all-extras --dev run: uv sync --locked --all-extras --dev
- name: Run tests - name: Run tests
run: uv run pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html 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

View File

@ -8,3 +8,15 @@ repos:
types: [python] types: [python]
pass_filenames: false pass_filenames: false
always_run: true always_run: true
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.7.9
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.7.9
hooks:
# Compile requirements
- id: pip-compile
args: [ requirements.in, -o, requirements.txt ]