Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure ci for python 3.10 #2734

Merged
merged 11 commits into from
Feb 6, 2024
5 changes: 4 additions & 1 deletion dash/testing/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def percy_snapshot(
"""
if widths is None:
widths = [1280]
snapshot_name = f"{name} - py{sys.version_info.major}.{sys.version_info.minor}"

# py3.9 hardcoded here to keep snapshot names the same accorss
# future python upgrades
snapshot_name = f"{name} - py3.9"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that's a good strategy - this means we know what changes if any the rest of the changes in this PR cause in the percy snapshots. After merging we can make another PR to remove the version number entirely, which will cause all the snapshots to look new but we can blindly approve.

logger.info("taking snapshot name => %s", snapshot_name)
try:
if wait_for_callbacks:
Expand Down