Add pytest CI job #9

Merged
mat merged 1 commit from ci/pytest into main 2026-04-24 12:59:38 +00:00
Owner

Summary

  • Adds a test-pytest job to the Validate workflow: checkout, set up Python 3.12, install requirements-test.txt, run pytest (config in pytest.ini).

Depends on

  • #3 (test infrastructure — requirements-test.txt, pytest.ini, tests/).
  • #4–#8 (actual test files to run).

Test plan

  • Merge after the test PRs land; re-trigger CI and verify test-pytest is green.

Notes

  • Uses actions/setup-python@v5. On Forgejo runners, actions/* is mirrored on data.forgejo.org so this should resolve without needing a full github.com URL. If it fails to resolve, the fix is the same one PR #7 applied to the HACS/hassfest actions.
## Summary - Adds a `test-pytest` job to the Validate workflow: checkout, set up Python 3.12, install `requirements-test.txt`, run `pytest` (config in `pytest.ini`). ## Depends on - #3 (test infrastructure — `requirements-test.txt`, `pytest.ini`, `tests/`). - #4–#8 (actual test files to run). ## Test plan - [ ] Merge after the test PRs land; re-trigger CI and verify `test-pytest` is green. ## Notes - Uses `actions/setup-python@v5`. On Forgejo runners, `actions/*` is mirrored on `data.forgejo.org` so this should resolve without needing a full github.com URL. If it fails to resolve, the fix is the same one PR #7 applied to the HACS/hassfest actions.
(AI) Add pytest CI job
Some checks failed
Validate / validate-hacs (push) Failing after 2s
Validate / validate-hassfest (push) Failing after 2s
Validate / test-pytest (push) Failing after 25s
Validate / validate-hacs (pull_request) Failing after 2s
Validate / validate-hassfest (pull_request) Failing after 2s
Validate / test-pytest (pull_request) Failing after 6s
448c5708c1
Adds a `test-pytest` job to the Validate workflow. It sets up
Python 3.12, installs the test extras from `requirements-test.txt`,
and runs `pytest` (configuration lives in `pytest.ini`).

Requires the test infrastructure and test files added in the
companion PRs to be merged first, otherwise pytest has nothing to
collect.
mat force-pushed ci/pytest from 448c5708c1
Some checks failed
Validate / validate-hacs (push) Failing after 2s
Validate / validate-hassfest (push) Failing after 2s
Validate / test-pytest (push) Failing after 25s
Validate / validate-hacs (pull_request) Failing after 2s
Validate / validate-hassfest (pull_request) Failing after 2s
Validate / test-pytest (pull_request) Failing after 6s
to 6453a4e9f9
Some checks failed
Validate / validate-hacs (push) Failing after 2s
Validate / validate-hassfest (push) Failing after 2s
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Failing after 2s
Validate / validate-hassfest (pull_request) Failing after 2s
Validate / test-pytest (pull_request) Failing after 6s
2026-04-24 12:25:37 +00:00
Compare
mat changed title from (AI) Add pytest CI job to Add pytest CI job 2026-04-24 12:25:52 +00:00
mat force-pushed ci/pytest from 6453a4e9f9
Some checks failed
Validate / validate-hacs (push) Failing after 2s
Validate / validate-hassfest (push) Failing after 2s
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Failing after 2s
Validate / validate-hassfest (pull_request) Failing after 2s
Validate / test-pytest (pull_request) Failing after 6s
to 8afea148d8
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / test-pytest (pull_request) Failing after 6s
2026-04-24 12:34:25 +00:00
Compare
mat force-pushed ci/pytest from 8afea148d8
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / test-pytest (pull_request) Failing after 6s
to 2deba7f3d8
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 6s
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 6s
Validate / test-pytest (pull_request) Failing after 6s
2026-04-24 12:42:34 +00:00
Compare
mat force-pushed ci/pytest from 2deba7f3d8
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 6s
Validate / test-pytest (push) Failing after 6s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 6s
Validate / test-pytest (pull_request) Failing after 6s
to 59896fe12a
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 7s
Validate / test-pytest (push) Failing after 2s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 7s
Validate / test-pytest (pull_request) Failing after 2s
2026-04-24 12:46:53 +00:00
Compare
mat force-pushed ci/pytest from 59896fe12a
Some checks failed
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 7s
Validate / test-pytest (push) Failing after 2s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 7s
Validate / test-pytest (pull_request) Failing after 2s
to 394342531e
All checks were successful
Validate / validate-hacs (push) Has been skipped
Validate / validate-hassfest (push) Has been skipped
Validate / lint-ruff (push) Successful in 6s
Validate / test-pytest (push) Successful in 2m54s
Validate / validate-hacs (pull_request) Has been skipped
Validate / validate-hassfest (pull_request) Has been skipped
Validate / lint-ruff (pull_request) Successful in 14s
Validate / test-pytest (pull_request) Successful in 1m46s
2026-04-24 12:50:12 +00:00
Compare
mat merged commit 7e455b0f7f into main 2026-04-24 12:59:38 +00:00
mat deleted branch ci/pytest 2026-04-24 12:59:38 +00:00
mat referenced this pull request from a commit 2026-04-24 12:59:40 +00:00
mat referenced this pull request from a commit 2026-04-24 14:26:33 +00:00
mat referenced this pull request from a commit 2026-04-24 21:51:56 +00:00
mat referenced this pull request from a commit 2026-04-24 21:51:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/homeassistant-comwatt!9
No description provided.