|
8 | 8 | test_accuracy: |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | steps: |
11 | | - - uses: actions/checkout@v3 |
12 | | - - uses: actions/setup-python@v4 |
13 | | - with: |
14 | | - python-version: 3.9 |
15 | | - cache: pip |
16 | | - - name: Create and start a virtual environment |
17 | | - run: | |
18 | | - python -m venv venv |
19 | | - source venv/bin/activate |
20 | | - - name: Install dependencies |
21 | | - run: | |
22 | | - source venv/bin/activate |
23 | | - python -m pip install --upgrade pip |
24 | | - pip install model_api/python/[tests] --extra-index-url https://download.pytorch.org/whl/cpu |
25 | | - - name: Prepare test data |
26 | | - run: | |
27 | | - source venv/bin/activate |
28 | | - python tests/python/accuracy/prepare_data.py -d data |
29 | | - - name: Run Python Test |
30 | | - run: | |
31 | | - source venv/bin/activate |
32 | | - pytest --data=./data tests/python/accuracy/test_accuracy.py |
33 | | - DATA=data pytest --data=./data tests/python/accuracy/test_YOLOv8.py |
34 | | - - name: Install CPP ependencies |
35 | | - run: | |
36 | | - sudo bash model_api/cpp/install_dependencies.sh |
37 | | - - name: Build CPP Test |
38 | | - run: | |
39 | | - mkdir build && cd build |
40 | | - cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror |
41 | | - make -j |
42 | | - - name: Run CPP Test |
43 | | - run: | |
44 | | - build/test_accuracy -d data -p tests/python/accuracy/public_scope.json |
45 | | - DATA=data build/test_YOLOv8 |
| 11 | + - uses: actions/checkout@v3 |
| 12 | + - uses: actions/setup-python@v4 |
| 13 | + with: |
| 14 | + python-version: 3.9 |
| 15 | + cache: pip |
| 16 | + - name: Create and start a virtual environment |
| 17 | + run: | |
| 18 | + python -m venv venv |
| 19 | + source venv/bin/activate |
| 20 | + - name: Install dependencies |
| 21 | + run: | |
| 22 | + source venv/bin/activate |
| 23 | + python -m pip install --upgrade pip |
| 24 | + pip install model_api/python/[tests] --extra-index-url https://download.pytorch.org/whl/cpu |
| 25 | + - name: Prepare test data |
| 26 | + run: | |
| 27 | + source venv/bin/activate |
| 28 | + python tests/python/accuracy/prepare_data.py -d data |
| 29 | + - name: Run Python Test |
| 30 | + run: | |
| 31 | + source venv/bin/activate |
| 32 | + pytest --data=./data tests/python/accuracy/test_accuracy.py |
| 33 | + DATA=data pytest --data=./data tests/python/accuracy/test_YOLOv8.py |
| 34 | + - name: Install CPP ependencies |
| 35 | + run: | |
| 36 | + sudo bash model_api/cpp/install_dependencies.sh |
| 37 | + - name: Build CPP Test |
| 38 | + run: | |
| 39 | + mkdir build && cd build |
| 40 | + cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror |
| 41 | + make -j |
| 42 | + - name: Run CPP Test |
| 43 | + run: | |
| 44 | + build/test_accuracy -d data -p tests/python/accuracy/public_scope.json |
| 45 | + DATA=data build/test_YOLOv8 |
0 commit comments