File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : ['3.11']
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v2
26+ with :
27+ version : " latest"
28+
29+ - name : Install dependencies
30+ run : uv sync
31+
32+ - name : Run tests
33+ run : |
34+ source .venv/bin/activate
35+ pytest tests/test_variance_and_local_inference.py tests/test_client_resilience.py tests/test_mqtt_client/ -v --cov=src --cov=server_client_light --cov-report=xml
36+
37+ - name : Upload coverage reports
38+ uses : codecov/codecov-action@v3
39+ with :
40+ files : ./coverage.xml
41+ flags : unittests
42+ name : codecov-umbrella
43+ fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments