-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (38 loc) · 1.16 KB
/
python-demos.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
43
44
45
46
name: Python Demos
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- '.github/workflows/python-demos.yml'
- 'demo/python/**'
- '!demo/python/README.md'
pull_request:
branches: [ main, 'v[0-9]+.[0-9]+' ]
paths:
- '.github/workflows/python-demos.yml'
- 'demo/python/**'
- '!demo/python/README.md'
defaults:
run:
working-directory: demo/python
jobs:
build-self-hosted:
runs-on: ${{ matrix.machine }}
strategy:
fail-fast: false
matrix:
machine: [pv-linux, pv-ios, pv-windows]
steps:
- uses: actions/checkout@v3
- name: Build dependencies
run: |
python3 -m pip install -U pip setuptools
python3 -m pip install wheel
cd ../../binding/python
python3 setup.py sdist bdist_wheel
python3 -m pip install --force-reinstall dist/pvpicollm-0.1.0-py3-none-any.whl
- name: Download resource files
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.bin/latest/phi2-290.bin -o phi2-290.bin
- name: Test
run: python3 mvm_demo_file.py --input_weight_file ./mvm-weights-4096x4096x256.bin