Path:
.github/workflows/ci-windows-powershell.yml
Lines:
69
Non-empty lines:
56
Non-empty lines covered with requirements:
56 / 56 (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 (Powershell)"
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.10"]
24
shard: ["1/2", "2/2"]
25
itest_group: [ "main_group", "html2pdf_group" ]
26
27
steps:
28
- uses: actions/checkout@v7
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@v7
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: Run Lint tasks
52
run: |
53
invoke lint
54
55
- name: " Windows specific: Install Tidy via Chocolatey, and add it to $PATH"
56
shell: pwsh
57
run: |
58
choco install html-tidy -y
59
$tidyPath = (Get-ChildItem "C:\ProgramData\chocolatey\lib\html-tidy" -Recurse -Filter tidy.exe | Select-Object -First 1).DirectoryName
60
echo "$tidyPath" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
61
62
- name: Run tests
63
shell: bash
64
run: |
65
if [ "${{ matrix.itest_group }}" = "html2pdf_group" ]; then
66
invoke test-integration --html2pdf --shard=${{ matrix.shard }}
67
else
68
invoke test --shard=${{ matrix.shard }}
69
fi