-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
27 lines (21 loc) · 813 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import subprocess
import os
# Change directory to "./github"
os.chdir("./github")
PIPELINE_SCRIPT = "./scripts/pipeline.py"
DEPENDENCIES = "requirements.txt"
SIMULATION = "./src/main.py"
GUI = "../webdriver.py"
STEPS = 4
# Execute script pipeline
print("[INFO: 1/{0}] Executing script pipeline: generating static data from ./data".format(STEPS))
subprocess.run(["python3", PIPELINE_SCRIPT], check=True)
# Install dependencies using pip3
print("[INFO: 2/{0}] Installing dependencies using pip3".format(STEPS))
subprocess.run(["pip3", "install", "-r", DEPENDENCIES], check=True)
# Run simulation
print("[INFO: 3/{0}] Running simulation!".format(STEPS))
subprocess.run(["python3", SIMULATION], check=True)
# Run GUI
print("[INFO: 4/{0}] Running GUI".format(STEPS))
subprocess.run(["python3", GUI], check=True)