-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 821 Bytes
/
Copy pathpython.yml
File metadata and controls
36 lines (28 loc) · 821 Bytes
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
name: Python Binding CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-verify-python:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pybind11 dependency
run: |
python -m pip install --upgrade pip
pip install pybind11
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build Python Binding Module
run: msbuild python/neuralnetwork_py.sln /p:Configuration=Release /p:Platform=x64
env:
PYTHON_HOME: ${{ env.pythonLocation }}
- name: Verify Module Import and Functionality
run: python python/import_check.py