installable package #9
1 changed files with 21 additions and 0 deletions
21
main.py
Normal file
21
main.py
Normal file
|
|
@ -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",
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue