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