forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 947 Bytes
/
pymnn_windows.yml
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
name: pymnn-windows
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'pymnn/**'
- '.github/workflows/pymnn_windows.yml'
pull_request:
branches: [master]
paths:
- 'pymnn/**'
- '.github/workflows/pymnn_windows.yml'
concurrency:
group: pymnn-windows-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pymnn_windows_buil_test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: prepare
run: |
pip3 install numpy opencv-python torch
- name: build
run: |
cd pymnn/pip_package
python3 build_deps.py
python3 setup.py install --version 1.0
- name: test
run: |
cd pymnn/test
python3 unit_test.py