import subprocess import os PAT = os.getenv("GITHUB_TOKEN") USER = os.getenv("GITHUB_USER") SLUG = os.getenv("GITHUB_SLUG") os.system(f"git clone https://{USER}:{PAT}@github.com/{SLUG}.git") os.chdir(SLUG.replace(f"{USER}/", "")) os.system("python demo.py")