Skip to content

[v0.1.0] 2025-09-06 #52

[v0.1.0] 2025-09-06

[v0.1.0] 2025-09-06 #52

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 --plugins visualizer,weberpenntree --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]
- name: Run pytest
run: |
pytest -v