Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Sep 19, 2024
1 parent b26c158 commit 7552900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
env:
CARGO_TERM_COLOR: always
CI: true
CACHE_MODELS_DIR: "models"

jobs:
test:
Expand Down Expand Up @@ -43,16 +42,7 @@ jobs:
if: runner.os == 'Windows'
shell: pwsh
run: |
New-Item -Path $CACHE_MODELS_DIR -ItemType Directory -Force
icacls $CACHE_MODELS_DIR /grant "${env:USERNAME}:(OI)(CI)F"
Push-Location $CACHE_MODELS_DIR
try {
poetry run pytest
}
finally {
Pop-Location
Remove-Item $CACHE_MODELS_DIR -Recurse -Force
}
Start-Process powershell -Verb RunAs -ArgumentList "-Command poetry run pytest"
- name: Run pytest (Non-Windows)
if: runner.os != 'Windows'
Expand Down
3 changes: 2 additions & 1 deletion tests/test_text_onnx_embeddings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import shutil
from pathlib import Path
import psutil


Expand Down Expand Up @@ -83,7 +84,7 @@ def remove_tree_with_permissions(path: str):


CI = os.getenv("CI") == "true"
MODELS_CACHE_DIR = os.getenv("MODELS_CACHE_DIR")
MODELS_CACHE_DIR = Path("models")


def kill_processes_using_file(file_path):
Expand Down

0 comments on commit 7552900

Please sign in to comment.