Skip to content

Commit eacf5e8

Browse files
Merge branch 'feat/addon-system'
# Conflicts: # docker-compose.yml # mediamtx.yml # recording_assistant.py
2 parents 2be2688 + a26480c commit eacf5e8

104 files changed

Lines changed: 45425 additions & 760 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
typescript:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: src/pro
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: npm
19+
cache-dependency-path: src/pro/package-lock.json
20+
- run: npm ci
21+
- run: npx tsc --noEmit
22+
- run: npm run build
23+
- run: npm test
24+
25+
python:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.11"
32+
- run: pip install pytest
33+
- name: Syntax check all Python
34+
run: |
35+
find . -name "*.py" -not -path "./.backups/*" \
36+
-exec python -c "import ast,sys; ast.parse(open(sys.argv[1]).read())" {} \;
37+
- name: Unit tests (no GUI/CV deps needed)
38+
run: pytest tests/py/test_convert.py
39+
- name: Tracker tests
40+
run: pytest tests/py/test_label_tracker.py
41+
continue-on-error: true
42+
43+
config-drift:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: mediamtx.yml in sync with cameras.json
48+
run: python3 src/scripts/gen_mediamtx_paths.py --check
49+
50+
docker:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: API image builds
55+
run: docker build -f "src/pro/Dockerfile.api" "src/pro"

0 commit comments

Comments
 (0)