Skip to content

ci: update actions off deprecated Node 20 runtime, run tests on master#22

Merged
bjhiltbrand merged 2 commits into
bjhiltbrand:masterfrom
magikh0e:ci-bump-actions
Jun 6, 2026
Merged

ci: update actions off deprecated Node 20 runtime, run tests on master#22
bjhiltbrand merged 2 commits into
bjhiltbrand:masterfrom
magikh0e:ci-bump-actions

Conversation

@magikh0e

@magikh0e magikh0e commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What

CI maintenance, two small fixes to the workflows:

  1. Clear the deprecated Node 20 action runtime warning. Bump to the current latest majors (on a supported Node runtime):

    • actions/checkout v4 -> v6 (test.yml), v3 -> v6 (python-publish.yml)
    • actions/setup-python v4 -> v6 (test.yml), v3 -> v6 (python-publish.yml)
    • codecov/codecov-action v3 -> v6, and rename its deprecated file: input to files:
    • pypa/gh-action-pypi-publish is a Docker action (no Node), left as is.
  2. Run tests on master. The triggers pointed at main/develop, but this repo's default branch is master, so the test job was not running on pushes or PRs to master. Repointed at master so CI actually gates changes.

Why

GitHub now warns that the Node 20 action runtime is deprecated, and the test workflow was effectively dormant for master-targeted PRs.

magikh0e added 2 commits June 5, 2026 18:16
Bump actions/checkout and actions/setup-python to v6 and
codecov/codecov-action to v6 (their current latest majors, on a
supported Node runtime) so GitHub stops flagging the deprecated Node 20
action runtime. Also rename codecov's deprecated `file` input to `files`.
The workflow triggered on main/develop, but this repo's default branch
is master, so the test job did not run on pushes or PRs to master. Point
the triggers at master so CI actually gates changes.
@bjhiltbrand bjhiltbrand merged commit 0299271 into bjhiltbrand:master Jun 6, 2026
2 of 11 checks passed
bjhiltbrand pushed a commit that referenced this pull request Jun 6, 2026
The test workflow started running on master (#22) and surfaced three
failures:

- ruff UP031: cognito_timestamp used percent formatting; switched to an
  f-string with identical output.
- black: reformatted device_srp.py, auth.py, client.py and the device
  tests to satisfy black --check (client.py was never black-compliant;
  CI just never ran black on master before).
- pytest: test_from_dict_full and test_get_vehicle_status_success fed a
  flat dict the model never reads (VehicleStatus.from_dict parses the
  nested last_known_state.controller), so they asserted against unparsed
  values. Rewrote both to the real nested payload and the values the
  model actually produces.

ruff check, black --check and pytest (79 passed) all pass locally.
@magikh0e magikh0e deleted the ci-bump-actions branch June 7, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants