Skip to content

Commit 10500b3

Browse files
committed
WIP: CI Windows
1 parent 927c44c commit 10500b3

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.github/workflows/ci-windows.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# NOTE: In contrast to Linux and macOS, the Windows build machines do not have Chrome installed.
2+
13
name: "HTML2PDF on Windows"
24

3-
# FIXME: Disabled until WDM detects Chrome on Windows reliably.
4-
# on:
5-
# pull_request:
6-
# branches: [ "**" ]
5+
on:
6+
pull_request:
7+
branches: [ "**" ]
78

89
jobs:
910
build:
@@ -21,6 +22,26 @@ jobs:
2122
with:
2223
python-version: ${{ matrix.python-version }}
2324

25+
- name: Install Google Chrome
26+
run: |
27+
choco install googlechrome --no-progress -y
28+
shell: powershell
29+
30+
- name: Check Chrome Version
31+
run: '& "C:\Program Files\Google\Chrome\Application\chrome.exe" --version'
32+
shell: powershell
33+
34+
- name: Add Chrome to PATH
35+
run: |
36+
$chromePath = "C:\Program Files\Google\Chrome\Application"
37+
echo "Adding $chromePath to PATH"
38+
echo "$chromePath" | Out-File -Append -Encoding utf8 $env:GITHUB_PATH
39+
shell: powershell
40+
41+
- name: Verify Chrome Installation
42+
run: chrome --version
43+
shell: powershell
44+
2445
- name: Upgrade pip
2546
run: |
2647
python -m pip install --upgrade pip

hpdf/hpdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def exit_handler():
266266
driver.quit()
267267

268268
for separate_path_pair_ in paths:
269+
print(f"PATH PAIR: {separate_path_pair_}")
269270
path_to_input_html, path_to_output_pdf = separate_path_pair_.split(":")
270271
assert os.path.isfile(path_to_input_html), path_to_input_html
271272

0 commit comments

Comments
 (0)