-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.19 KB
/
Copy pathtest.yml
File metadata and controls
36 lines (33 loc) · 1.19 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
name: tests
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.13" # matches Indigo 2025.2's embedded Python
- name: Syntax check
run: python -m compileall -q "Device_Activity_Monitor.indigoPlugin/Contents/Server Plugin"
# ONE pytest run from the repo root collects the bundle suite AND the
# version-consistency guard in tests/. pytest is used rather than unittest's
# own discovery because that cannot collect plain pytest-style test functions:
# it found 8 of UniFiHealth's 17 and reported OK, so that job went green having
# run barely half the suite. pytest collects unittest.TestCase classes too, so
# this is strictly wider. 195 tests here at the time of writing.
- name: Tests
run: |
pip install pytest
python -m pytest -q
- name: Lint (ruff — errors only, see ruff.toml)
run: |
pip install ruff
ruff check .