Skip to content

Commit

Permalink
Commit test for Issue 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan-Feng committed Mar 1, 2024
1 parent dfb8709 commit 2cfdbca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions constrain/api/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def __init__(self, workflow, run_workflow_now=False):

self.load_states()

# change dir: change the working path to the "working_dir" value in workflow_dict
# Need test
print("Change the working path to ",self.workflow_dict['working_dir'])

This comment has been minimized.

Copy link
@leijerry888

leijerry888 Mar 1, 2024

Collaborator

Before the action, please add validation logic to check for the validity of the folder. If the folder does not exist, please create it. We need this to work for both windows and linux too.

os.chdir(self.workflow_dict['working_dir'])
if run_workflow_now:
self.run_workflow()

Expand Down

0 comments on commit 2cfdbca

Please sign in to comment.