-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (64 loc) · 1.91 KB
/
pytest-windows.yml
File metadata and controls
78 lines (64 loc) · 1.91 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
66
67
68
69
70
71
72
73
74
75
76
77
78
name: pytest-windows
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout PyHelios
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install build dependencies only
run: |
python -m pip install --upgrade pip
- name: Build native libraries
env:
CMAKE_RC_COMPILER: ""
run: |
python build_scripts/build_helios.py --buildmode release --nogpu --verbose
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: windows-build-artifacts
path: |
pyhelios_build/build/
pyhelios/plugins/*.dll
retention-days: 1
test:
needs: build
runs-on: windows-2022
steps:
- name: Checkout PyHelios
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: windows-build-artifacts
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
# Remove pytest-forked on Windows (doesn't support fork())
pip uninstall -y pytest-forked
- name: Run pytest
run: |
# Create Windows-compatible pytest.ini without --forked flag
(Get-Content pytest.ini) -replace ' --forked', '' | Set-Content pytest-windows.ini
# Run pytest with Windows-compatible configuration
pytest -c pytest-windows.ini -v