Skip to content

Update pybind11 2.11.1. #156

Update pybind11 2.11.1.

Update pybind11 2.11.1. #156

Workflow file for this run

name: win-build
on:
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-2022]
python-version: ['3.8', '3.9', '3.10']
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Before install
run: |
# 安装 eigen3
vcpkg install eigen3:x64-windows;
# 安装 pybind11, pytest和wheel
python -m pip install --upgrade pip;
pip install pybind11==2.11.1;
pip install pytest wheel;
- name: Install
run: |
pip install .;
- name: Test with pytest
# 测试模块功能
run: |
pytest;
- name: Test examples
# 测试全部的样例能否正常运行
run: |
Get-ChildItem "examples" -Filter *.py | Foreach-Object {
python3 $_.FullName;
}