Skip to content

Commit

Permalink
fix: Add --chdir to test_workflow.py (#4453)
Browse files Browse the repository at this point in the history
Signed-off-by: Yang, Bo <[email protected]>
  • Loading branch information
Atry authored Aug 27, 2024
1 parent 55a61e8 commit 6b2f026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def run_demo():
store = FeatureStore(repo_path=os.path.dirname(__file__))
print("\n--- Run feast apply to setup feature store on Postgres ---")
subprocess.run(["feast", "apply"])
subprocess.run(["feast", "--chdir", os.path.dirname(__file__), "apply"])

print("\n--- Historical features for training ---")
fetch_historical_features_entity_df(store, for_batch_scoring=False)
Expand Down Expand Up @@ -55,7 +55,7 @@ def run_demo():
fetch_online_features(store, source="push")

print("\n--- Run feast teardown ---")
subprocess.run(["feast", "teardown"])
subprocess.run(["feast", "--chdir", os.path.dirname(__file__), "teardown"])


def fetch_historical_features_entity_df(store: FeatureStore, for_batch_scoring: bool):
Expand Down

0 comments on commit 6b2f026

Please sign in to comment.