-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 819 Bytes
/
python-ci.yml
File metadata and controls
40 lines (33 loc) · 819 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
37
38
39
40
name: Python Engine CI
on:
push:
paths:
- "python-engine/**"
pull_request:
paths:
- "python-engine/**"
jobs:
python_test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
working-directory: python-engine
run: pip install -r requirements.txt
- name: Import test
working-directory: python-engine
run: |
python - <<EOF
try:
import cv2
print("OpenCV OK")
except Exception as e:
print("OpenCV ERROR:", e)
exit(1)
print("Python engine OK")
EOF