Skip to content

ci(actions): upgrade actions and adopt prek - #304

Merged
SigureMo merged 2 commits into
redai-studio:mainfrom
ooooo-create:ci/update-actions-and-prek
Sep 8, 2026
Merged

ci(actions): upgrade actions and adopt prek#304
SigureMo merged 2 commits into
redai-studio:mainfrom
ooooo-create:ci/update-actions-and-prek

Conversation

@ooooo-create

@ooooo-create ooooo-create commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

What

Upgrade the actions used by CI and GitHub Pages, replace pre-commit/action with j178/prek-action, and restrict CI push/PR branch filters to main.

Why

Keep workflow actions current, use prek to instead of pre-commit in ci, it's faster than pre-commit and more efficient in disk space usage, also fully compatible with the original pre-commit configurations and hooks.

How

Update setup-python to v7, setup-node to v7, cache to v6, configure-pages to v6, upload-pages-artifact to v5, and deploy-pages to v5.

Use j178/prek-action@v3.0.0 to run the existing .pre-commit-config.yaml.

Remove develop from the CI push and pull-request branch filters.

Testing

prek run --all-files passes

  • pre-commit run --all-files passes
  • Tests pass (pytest tests/)
  • New tests added (if applicable)
  • Documentation updated (if applicable)

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • CI/CD or build changes

Screenshots / Logs

# 🔧 CI/CD

- Upgrade Python, Node.js, cache, and GitHub Pages actions to current major versions.
- Replace pre-commit/action with j178/prek-action v3.0.0 using its default all-files checks.
- Limit CI push and pull request branch filters to main.

## Validation

- Pass pre-commit run --all-files --show-diff-on-failure.
- Pass prek run --all-files in an isolated repository snapshot.
- Validate workflow YAML and git diff --check.
@SigureMo
SigureMo marked this pull request as ready for review September 8, 2026 12:05
Copilot AI lite review requested due to automatic review settings September 8, 2026 12:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T12:09:31.165685Z fb3e5f9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SigureMo SigureMo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

Comment thread .github/workflows/ci.yml
Comment on lines +28 to +29
- name: Run prek
uses: j178/prek-action@v3.0.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep workflow actions current, use prek to instead of pre-commit in ci, it's faster than pre-commit and more efficient in disk space usage, also fully compatible with the original pre-commit configurations and hooks.

可以,我觉得没问题,兼容性上应该是没问题的

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to workflow configuration updates with valid action versions and no application/runtime code impact.

Pull request overview

This PR updates the repository’s GitHub Actions workflows by upgrading several official actions, switching the CI lint job from pre-commit/action to j178/prek-action, and narrowing CI triggers to only run for main.

Changes:

  • Upgrade workflow actions used by CI and GitHub Pages (e.g., checkout/setup-python/setup-node/cache/pages actions).
  • Replace pre-commit/action with j178/prek-action@v3.0.0 for running the existing pre-commit configuration via prek.
  • Restrict push/pull_request branch filters in CI to main only.
File summaries
File Description
.github/workflows/deploy-docs.yml Upgrades GitHub Pages-related actions and Node/Python setup actions for the docs deployment pipeline.
.github/workflows/ci.yml Restricts CI triggers to main, upgrades actions, and adopts j178/prek-action for hook execution.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 8, 2026 12:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Multiple workflows reference action major versions that do not appear to exist (e.g., actions/setup-python@v7, actions/setup-node@v7, actions/cache@v6, and several Pages actions), which will cause CI/docs deployments to fail.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@SigureMo
SigureMo merged commit 8b79618 into redai-studio:main Sep 8, 2026
4 checks passed
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.

3 participants