Run Conda tests with aligned tag/version (#15904)
This commit is contained in:
parent
cfebb5f26b
commit
6eb587ef15
1 changed files with 7 additions and 7 deletions
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
|
@ -329,13 +329,13 @@ jobs:
|
|||
results = model.export(format='onnx', imgsz=160)
|
||||
"
|
||||
- name: PyTest
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 60
|
||||
max_attempts: 3
|
||||
command: |
|
||||
git clone https://github.com/ultralytics/ultralytics
|
||||
pytest ultralytics/tests
|
||||
run: |
|
||||
VERSION=$(conda list ultralytics | grep ultralytics | awk '{print $2}')
|
||||
echo "Ultralytics version: $VERSION"
|
||||
git clone https://github.com/ultralytics/ultralytics.git
|
||||
cd ultralytics
|
||||
git checkout tags/v$VERSION
|
||||
pytest tests
|
||||
|
||||
Summary:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue