diff --git a/.github/workflows/pycafe-dashboards-in-CI.yml b/.github/workflows/pycafe-dashboards-in-CI.yml index 5dc846cc7..dc425c2a1 100644 --- a/.github/workflows/pycafe-dashboards-in-CI.yml +++ b/.github/workflows/pycafe-dashboards-in-CI.yml @@ -61,9 +61,9 @@ jobs: GITHUB_TOKEN: ${{ github.token }} RUN_ID: ${{ github.run_id }} GITHUB_REPOSITORY: ${{ github.repository }} - PR_NUMBER: ${{ github.event.inputs.pr_number }} + PR_NUMBER: ${{ github.event.inputs.pr_number }} GITHUB_OWNER: mckinsey - + run: | cd vizro-core - hatch run python ../tools/pycafe/test.py vizro-core/examples/scratch_dev/ \ No newline at end of file + hatch run python ../tools/pycafe/test.py vizro-core/examples/scratch_dev/ diff --git a/tools/pycafe/test.py b/tools/pycafe/test.py index a88940393..7c236b38b 100644 --- a/tools/pycafe/test.py +++ b/tools/pycafe/test.py @@ -1,18 +1,18 @@ -import os -import sys -from github import Auth, Github -import subprocess -from pathlib import Path -import textwrap import base64 import gzip import json +import os +import subprocess +import sys +import textwrap +from pathlib import Path from urllib.parse import quote, urlencode +from github import Auth, Github -GITHUB_TOKEN = str(os.getenv('GITHUB_TOKEN')) -REPO_NAME = str(os.getenv('GITHUB_REPOSITORY')) -PR_NUMBER = int(os.getenv('PR_NUMBER')) +GITHUB_TOKEN = str(os.getenv("GITHUB_TOKEN")) +REPO_NAME = str(os.getenv("GITHUB_REPOSITORY")) +PR_NUMBER = int(os.getenv("PR_NUMBER")) # COMMIT_HASH = str(os.getenv("COMMIT_HASH")) RUN_ID = str(os.getenv("RUN_ID")) @@ -31,7 +31,6 @@ COMMIT_SHA = pr.head.sha - def generate_link(directory): base_url = f"https://raw.githubusercontent.com/mckinsey/vizro/{COMMIT_SHA}/{DIRECTORY}"