Skip to content

Commit

Permalink
Use only env vars instead of setting
Browse files Browse the repository at this point in the history
  • Loading branch information
eladven committed Mar 17, 2024
1 parent b0f790c commit eecc4d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/catalog_preparation_consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ jobs:
- run: pip install -r requirements/base.rqr
- run: pip install -r requirements/tests.rqr

- run: export PYTHONPATH="$(pwd)/src:$PYTHONPATH"
- name: Run Tests
run: python utils/prepare_all_artifacts.py
4 changes: 1 addition & 3 deletions utils/prepare_all_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import importlib.util
import os
import shutil
from src.unitxt.settings_utils import get_settings


def import_module_from_file(file_path):
Expand Down Expand Up @@ -36,8 +35,7 @@ def prepare_all_artifacts_in_catalog_for_type(artifact_type):


def prepare_all_catalog_artifacts():
settings = get_settings()
settings.use_only_local_catalogs = True
os.environ["UNITXT_USE_ONLY_LOCAL_CATALOGS"] = "True"
os.environ["UNITXT_TEST_CARD_DISABLE"] = "True"
os.environ["UNITXT_TEST_METRIC_DISABLE"] = "True"
print("*" * 100)
Expand Down

0 comments on commit eecc4d8

Please sign in to comment.