🔧 Make ruff CI job portable across Forgejo and GitHub #13

Merged
mat merged 1 commit from ci/ruff-portable into main 2026-04-24 14:11:06 +00:00
Owner

Summary

  • astral-sh/ruff-action isn't mirrored on data.forgejo.org. The https://github.com/... URL form that fixes this on Forgejo is rejected by GitHub Actions (Unable to resolve action https:/github.com).
  • Drop the action and pip install ruff==0.15.11 directly inside the nikolaik/python-nodejs:python3.12-nodejs20 container (same image used by the pytest and mypy jobs). Same tool, same version pin, works on both runners.

Test plan

  • ruff check . passes locally on main-with-this-change.
  • CI is green on both Forgejo and GitHub.
## Summary - `astral-sh/ruff-action` isn't mirrored on `data.forgejo.org`. The `https://github.com/...` URL form that fixes this on Forgejo is rejected by GitHub Actions (`Unable to resolve action https:/github.com`). - Drop the action and `pip install ruff==0.15.11` directly inside the `nikolaik/python-nodejs:python3.12-nodejs20` container (same image used by the pytest and mypy jobs). Same tool, same version pin, works on both runners. ## Test plan - [x] `ruff check .` passes locally on `main`-with-this-change. - [ ] CI is green on both Forgejo and GitHub.
🔧 Make ruff CI job portable across Forgejo and GitHub
All checks were successful
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) Successful in 1m45s
Validate / type-check-mypy (push) Successful in 1m48s
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) Successful in 1m44s
Validate / type-check-mypy (pull_request) Successful in 1m48s
8d442d0234
`astral-sh/ruff-action` is not mirrored on `data.forgejo.org`, so the
job was prefixed with `https://github.com/` to pull it directly from
github.com. Forgejo Actions accepts that URL form, but GitHub Actions
rejects it with `Unable to resolve action https:/github.com,
repository not found`.

Drop the action entirely and install ruff via pip inside the
`nikolaik/python-nodejs:python3.12-nodejs20` container already used by
the pytest and mypy jobs. Same tool, same version pin, works on both
runners without any URL gymnastics.
mat merged commit ad4925e819 into main 2026-04-24 14:11:06 +00:00
mat deleted branch ci/ruff-portable 2026-04-24 14:11:06 +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
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!13
No description provided.