You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify CI: drop Docker Compose, run pytest directly against cassettes
Tests no longer need a live HA instance — cassettes handle all HTTP
interactions. Removes the HA server container, Dockerfile build, entrypoint
wait, volume mounts, and hardcoded token from CI.
Copy file name to clipboardExpand all lines: .github/workflows/test-suite.yml
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -40,26 +40,19 @@ jobs:
40
40
code_functionality:
41
41
name: "Code Functionality"
42
42
runs-on: ubuntu-latest
43
-
environment: "Test Suite"
44
43
steps:
45
44
- name: Checkout
46
45
uses: actions/checkout@v3
47
46
with:
48
47
ref: ${{ github.event.pull_request.head.sha }}
49
-
- name: Pre Docker Setup
50
-
run: |
51
-
mkdir volumes/coverage
52
-
- name: Run Test Environment
53
-
run: |
54
-
docker compose up --build --exit-code-from tests
55
-
env:
56
-
HOMEASSISTANTAPI_TOKEN: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkMDE4YjQ4YzMyZTE0ODNhYjY2ZWQzOTZmYzg3ZDAyNiIsImlhdCI6MTY3ODU3NDUwMSwiZXhwIjoxOTkzOTM0NTAxfQ.fyhnfwpont4uE0gn46_Ut_pPmyn4QWv0MDaVAei2PPk"# This is non-sensitive data
57
-
- name: Post Docker Setup
58
-
run: |
59
-
sudo chown -R $USER volumes
48
+
- name: Install uv
49
+
uses: astral-sh/setup-uv@v4
50
+
- name: Install Dependencies
51
+
run: uv sync --group dev
52
+
- name: Run Tests
53
+
run: uv run pytest --cov --cov-report xml:coverage.xml
0 commit comments