From b52690549b6ea9bc4ab53f6fb8af2ac1a724572d Mon Sep 17 00:00:00 2001 From: Sam <61994039+fourthDimensional@users.noreply.github.com> Date: Sat, 31 May 2025 19:54:05 -0500 Subject: [PATCH] Enhance pre-commit configuration and update test workflow for better results reporting --- .gitea/workflows/run_tests.yml | 8 +++++++- .pre-commit-config.yaml | 14 +++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/run_tests.yml b/.gitea/workflows/run_tests.yml index 7b08610..d469cbd 100644 --- a/.gitea/workflows/run_tests.yml +++ b/.gitea/workflows/run_tests.yml @@ -27,4 +27,10 @@ jobs: 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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2ff3dde..56e99ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,4 +7,16 @@ repos: language: system types: [python] pass_filenames: false - always_run: true \ No newline at end of file + 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 ] \ No newline at end of file