-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.78 KB
/
Copy pathtest.yml
File metadata and controls
62 lines (53 loc) · 1.78 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
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Node (for viewer frontend)
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "yarn"
cache-dependency-path: src/syncfield/viewer/frontend/yarn.lock
- name: Build viewer frontend
working-directory: src/syncfield/viewer/frontend
run: |
yarn install --frozen-lockfile
yarn build
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install --yes libportaudio2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# [all] brings in every optional adapter dep (bleak, aiohttp,
# depthai, zeroconf, httpx) so tests that import adapters at
# collection time don't ImportError.
pip install -e ".[all]"
# `dev` lives in PEP 735 [dependency-groups], not
# [project.optional-dependencies], so .[dev] wouldn't resolve.
# Install pytest + its plugins explicitly — keep this list in
# sync with [dependency-groups].dev in pyproject.toml.
pip install \
"pytest>=8.4.2" \
"pytest-aiohttp>=1.1.0" \
"pytest-asyncio>=1.2.0" \
"pytest-mock>=3.12.0" \
"pytest-timeout>=2.4.0" \
"pytest-xdist>=3.6.0"
- name: Run tests
run: pytest -v