Path:
.github/workflows/ci-windows.yml
Lines:
77
Non-empty lines:
62
Non-empty lines covered with requirements:
62 / 62 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#2
# @relation(SDOC-SRS-11, scope=file)3
#4
5
name: "StrictDoc on Windows"
6
7
on:
8
push:
9
branches: [ "master" ]
10
pull_request:
11
branches: [ "**" ]
12
13
concurrency:
14
group: ${{ github.workflow }}-${{ github.ref }}
15
cancel-in-progress: true
16
17
jobs:
18
build:
19
runs-on: windows-latest
20
21
strategy:
22
matrix:
23
python-version: ["3.14"]
24
shard: ["1/2", "2/2"]
25
itest_group: [ "main_group", "html2pdf_group" ]
26
27
steps:
28
- uses: actions/checkout@v6
29
with:
30
fetch-depth: 5
31
32
- name: "Print Debug info"
33
run: |
34
echo $env:USERPROFILE
35
echo $env:PATH
36
echo "$PWD"
37
38
- name: Set up Python ${{ matrix.python-version }}
39
uses: actions/setup-python@v6
40
with:
41
python-version: ${{ matrix.python-version }}
42
43
- name: Upgrade pip
44
run: |
45
python -m pip install --upgrade pip
46
47
- name: Install minimal Python packages
48
run: |
49
pip install -r requirements.bootstrap.txt
50
51
- name: "Windows specific: Install StrictDoc's dependencies"
52
run: |
53
python developer/pip_install_strictdoc_deps.py
54
55
- name: "Windows specific: Install Check dependencies (everything for lint + test)"
56
run: |
57
pip install -r requirements.check.txt
58
59
- name: " Windows specific: Install Tidy via Chocolatey, and add it to $PATH"
60
shell: pwsh
61
run: |
62
choco install html-tidy -y
63
$tidyPath = (Get-ChildItem "C:\ProgramData\chocolatey\lib\html-tidy" -Recurse -Filter tidy.exe | Select-Object -First 1).DirectoryName
64
echo "$tidyPath" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
65
66
- name: Run Lint tasks
67
run: |
68
invoke lint
69
70
- name: Run tests
71
shell: bash
72
run: |
73
if [ "${{ matrix.itest_group }}" = "html2pdf_group" ]; then
74
invoke test-integration --html2pdf --shard=${{ matrix.shard }}
75
else
76
invoke test --shard=${{ matrix.shard }}
77
fi