Skip to content

Commit

Permalink
[CI] Final check PR (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL authored Oct 28, 2024
1 parent 3f9908b commit 407e167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions tools/pycafe/create_pycafe_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from typing import Optional
from urllib.parse import quote, urlencode

import requests
import vizro
from github import Auth, Github

Expand Down Expand Up @@ -56,17 +57,14 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None

# Requirements
requirements = "\n".join(
filter(
None,
[
f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl",
*(extra_requirements or []),
],
)
[
f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl",
*(extra_requirements or []),
]
)

# App file
app_content = Path(directory, "app.py").read_text()
app_content = requests.get(f"{base_url}/app.py").text
app_content_split = app_content.split('if __name__ == "__main__":')
if len(app_content_split) > 1:
app_content = app_content_split[0] + textwrap.dedent(app_content_split[1])
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/examples/scratch_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


page = vm.Page(
title="Test New IV",
title="Test New XXXXXX change",
components=[
vm.Graph(
figure=px.bar(
Expand Down

0 comments on commit 407e167

Please sign in to comment.