Skip to content

Commit 0870328

Browse files
committed
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.
1 parent 79456ef commit 0870328

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,19 @@ jobs:
4040
code_functionality:
4141
name: "Code Functionality"
4242
runs-on: ubuntu-latest
43-
environment: "Test Suite"
4443
steps:
4544
- name: Checkout
4645
uses: actions/checkout@v3
4746
with:
4847
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
6054
- name: Upload Coverage Report
6155
uses: codecov/codecov-action@v3
6256
with:
6357
token: ${{ secrets.CODECOV_TOKEN }}
64-
files: ./volumes/coverage/coverage.xml
65-
verbose: true
58+
files: coverage.xml

0 commit comments

Comments
 (0)