Skip to content

[v0.1.13] 2025-12-25 #101

[v0.1.13] 2025-12-25

[v0.1.13] 2025-12-25 #101

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