-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.17 KB
/
ci_edge_camera.yml
File metadata and controls
50 lines (43 loc) · 1.17 KB
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
name: CI edge-camera
run-name: edge-camera CI on branch >> ${{ github.ref_name }} <<
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- "edge/camera/**"
jobs:
lint_and_test_on_edge_camera:
name: Run Python linter and unit tests
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: make install
working-directory: ./edge/camera
- name: Lint with ruff
run: make check
working-directory: ./edge/camera
- name: Run unit tests
run: make unit_tests
working-directory: ./edge/camera
- name: Upload unit test report
uses: dorny/test-reporter@v1
if: ${{ always() }}
with:
name: Unit tests report in Python ${{ matrix.python-version }}
path: edge/camera/reports/pytest/unit-tests-report.xml
reporter: java-junit