try using ` --python-preference system --refresh` flags

uv-pytests
Burhan 2 weeks ago committed by GitHub
parent c73344e1b0
commit 09e8d74d8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/ci.yaml

@ -197,7 +197,7 @@ jobs:
if [[ "${{ github.event_name }}" =~ ^(schedule|workflow_dispatch)$ ]]; then
slow="--slow"
fi
uv run pytest $slow --cov=ultralytics/ --cov-report xml tests/
uv run --python-preference system --refresh pytest $slow --cov=ultralytics/ --cov-report xml tests/
- name: Upload Coverage Reports to CodeCov
if: github.repository == 'ultralytics/ultralytics' # && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v5
@ -227,7 +227,7 @@ jobs:
if [[ "${{ github.event_name }}" =~ ^(schedule|workflow_dispatch)$ ]]; then
slow="--slow"
fi
uv run pytest $slow --cov=ultralytics/ --cov-report xml tests/test_cuda.py
uv run --python-preference system --refresh pytest $slow --cov=ultralytics/ --cov-report xml tests/test_cuda.py
- name: Upload Coverage Reports to CodeCov
uses: codecov/codecov-action@v5
with:

Loading…
Cancel
Save