Skip to content

Commit e8d1c25

Browse files
committed
multi browser
1 parent f0a8de7 commit e8d1c25

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ inputs:
1212
description: 'Diff against an earlier version of the fonts'
1313
required: false
1414
default: 'none'
15+
width:
16+
description: 'Width of diff images. Default is 1280px'
17+
required: false
18+
default: 1280
1519
runs:
1620
using: "composite"
1721
steps:
@@ -21,13 +25,18 @@ runs:
2125
python-version: 3.9
2226
- name: Install packages
2327
run: |
24-
pip install pip install git+https://github.com/m4rc1e/tools.git@6b76b11dfd79168002b9be113085b87ac43f92c1
28+
pip install git+https://github.com/m4rc1e/tools.git@b0b5a57c0bd58fbfcc51ea6c05c45017f37a7e19
2529
shell: bash
2630
- name: Setup Chrome
2731
uses: browser-actions/setup-chrome@latest
2832
- name: Setup Chrome Driver
2933
uses: nanasess/setup-chromedriver@master
3034

35+
- name: Setup Firefox
36+
uses: browser-actions/setup-firefox@latest
37+
- name: Setup Firefox Driver
38+
uses: browser-actions/setup-geckodriver@latest
39+
3140
- name: Gen Screenshots
3241
run: |
3342
chromedriver --url-base=/wd/hub &

test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
parser.add_argument("path")
1616
parser.add_argument("--pt_size", default=16)
1717
parser.add_argument("--fonts_before")
18+
parser.add_argument("--width", type=int, default=1280)
1819
args = parser.parse_args()
1920

2021

@@ -47,4 +48,4 @@
4748

4849

4950
html.build_pages(pt_size=args.pt_size)
50-
html.save_imgs()
51+
html.save_imgs(width=args.width)

0 commit comments

Comments
 (0)