-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (50 loc) · 1.58 KB
/
integration-testing.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Continuous Integration
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout model repo
uses: actions/checkout@v4
- name: Fetch optimiser repo
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
URL=https://github.com/AlexMontgomerie/fpgaconvnet-optimiser.git
if [ -z $(git ls-remote --heads $URL $BRANCH) ]; then
echo "Warning! branch $BRANCH does not exist. use dev instead"
BRANCH="dev"
else
echo "checkout branch $BRANCH sucessfully"
fi
git clone --branch $BRANCH $URL fpgaconvnet-optimiser
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt-get install protobuf-compiler libprotoc-dev graphviz
python -m pip install --upgrade pip
# for some unknown reason, these packages need special care
python -m pip install wheel
python -m pip install nvidia-pyindex
python -m pip install onnx-graphsurgeon
python -m pip install .
python -m pip install ./fpgaconvnet-optimiser
- name: Build default resource models
run: |
./scripts/regenerate_default_resource_models.sh
- name: Run Model Unit Tests
run: |
pytest tests -v
- name: Run Optimisation Tests
run: |
cd fpgaconvnet-optimiser
bash tests/run_models.sh
cd ..