Skip to content

Commit 0948a45

Browse files
Use applitools branches (#2325)
2 parents 40ab9c8 + cfbf0ff commit 0948a45

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#2324: Use branch feature on applitools

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- conda-forge::numexpr # https://github.com/mantidproject/mantidimaging/issues/1774
1111
- pip
1212
- pip:
13-
- eyes-images==5.20.*
13+
- eyes-images==5.23.*
1414
- yapf==0.40.*
1515
- mypy==1.8
1616
- types-requests

mantidimaging/eyes_tests/eyes_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
VIEWPORT_WIDTH = 1920
2828
VIEWPORT_HEIGHT = 1080
2929

30+
BRANCH_NAME = None
31+
if 'GITHUB_HEAD_REF' in os.environ:
32+
BRANCH_NAME = os.environ['GITHUB_HEAD_REF']
33+
3034

3135
class EyesManager:
3236

@@ -35,6 +39,7 @@ def __init__(self, application_name="Mantid Imaging", test_name=None):
3539
self.eyes = Eyes()
3640
self.eyes.match_level = MatchLevel.IGNORE_COLORS
3741
self.eyes.configure.host_os = sys.platform
42+
self.eyes.branch_name = BRANCH_NAME
3843
self.image_directory = None
3944
self.imaging = None
4045
if test_name is None:

0 commit comments

Comments
 (0)