-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (49 loc) · 1.42 KB
/
ci-windows.yml
File metadata and controls
65 lines (49 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# NOTE: In contrast to Linux and macOS, the Windows build machines do not have Chrome installed.
name: "HTML2PDF4Doc on Windows"
on:
pull_request:
branches: [ "**" ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Google Chrome
run: |
choco install googlechrome --no-progress -y --ignore-checksums
shell: powershell
- name: Check Chrome Version
run: '(Get-Item "C:\Program Files\Google\Chrome\Application\chrome.exe").VersionInfo'
shell: powershell
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install minimal Python packages
run: |
pip install -r requirements.development.txt
- name: Clone HTML2PDF4Doc.js
run: |
invoke bootstrap
- name: Install HPDF dependencies.
run: |
python developer/pip_install_html2pdf4doc_deps.py
- name: Run Lint tasks
run: |
invoke lint
- name: Build HTML2PDF4Doc.js
run: |
invoke build
- name: Download ChromeDriver
run: |
python -m html2pdf4doc.main get_driver
- name: Run tests (Bash)
run: |
invoke test
shell: bash