-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.22 KB
/
Copy pathe2e-windows.yml
File metadata and controls
43 lines (36 loc) · 1.22 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
name: e2e (windows reusable)
# Covers both windows-bare (self-created Job Object around a plain process)
# and windows-container (process-isolated container, pinned windows-2022 +
# ltsc2022 -- Hyper-V isolation is never used, GH Windows runners have no
# nested-virt path for it; an HCS 0xc0370106 build desync is reported as an
# infrastructure error, never a measurement mismatch, per criterion 14).
on:
workflow_call:
inputs:
profiles:
required: true
type: string
jobs:
scenario-profile:
strategy:
fail-fast: false
matrix:
profile: ${{ fromJSON(inputs.profiles) }}
runs-on: ${{ matrix.profile.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: install package + test deps
shell: pwsh
run: pip install -e ".[test]"
- name: install profile prerequisites
if: contains(matrix.profile.prereqs, 'pywin32')
shell: pwsh
run: pip install pywin32
- name: run this profile's scenarios
shell: pwsh
run: |
$ids = '${{ join(matrix.profile.scenario_ids, " or ") }}'
python -m pytest tests/e2e -v -k "$ids"