diff --git a/main.py b/main.py new file mode 100644 index 0000000..f91d0e3 --- /dev/null +++ b/main.py @@ -0,0 +1,21 @@ +import json +import os +import subprocess +from pathlib import Path + +# --------------------- load credentials to env variables -------------------- # + +cred_file = Path("credentials.json") +with open(cred_file, "r") as f: + CREDENTIALS = json.load(f) + +for key, value in CREDENTIALS.items(): + os.environ[key] = value + + +subprocess.run( + [ + "pytest-abra", + # "--debug", + ] +)