Skip to content

Feature/GitHub workflows - #1

Open
JakubPekar wants to merge 2 commits into
masterfrom
feature/github-workflows
Open

Feature/GitHub workflows#1
JakubPekar wants to merge 2 commits into
masterfrom
feature/github-workflows

Conversation

@JakubPekar

@JakubPekar JakubPekar commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Enhanced CI/CD pipeline with automated Python linting on code changes to the main development branch.
    • Updated workflow configuration to ensure consistent code quality checks across platforms.

Copilot AI review requested due to automatic review settings April 10, 2026 06:55
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The pull request migrates Python linting CI infrastructure from GitLab CI to GitHub Actions. A new GitHub Actions workflow was added that delegates to a reusable RationAI lint workflow, while the corresponding GitLab CI template inclusion and lint stage declaration were removed.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Addition
.github/workflows/python-lint.yml
New workflow added that triggers on pushes/PRs to master and manual dispatch, delegating Python linting to a reusable workflow at RationAI/.github/.github/workflows/python-lint.yml on the main ref.
GitLab CI Configuration Removal
.gitlab-ci.yml
Removed the include directive for rationai/digital-pathology/templates/ci-templatesPython-Lint.gitlab-ci.yml and removed the explicit stages definition containing the lint stage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 From GitLab's stage we hop away,
To GitHub Actions, hip hooray!
The linter moves with a gentle bound,
Where workflows reuse and safety's found. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Feature/GitHub workflows' is vague and generic, using non-descriptive phrasing that doesn't convey the specific nature of the changes (adding GitHub Actions workflow while removing GitLab CI configuration). Consider a more descriptive title such as 'Add GitHub Actions Python lint workflow and remove GitLab CI template' to clearly communicate the primary changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/github-workflows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/python-lint.yml:
- Line 11: The reusable workflow reference "uses:
RationAI/.github/.github/workflows/python-lint.yml@main" is pinned to a mutable
branch; replace the "@main" suffix with a specific commit SHA (e.g.,
"@<commit-sha>") to pin the exact version, updating the line so the workflow
uses that commit SHA instead of the branch name; obtain the SHA from the
RationAI/.github repo (via git log or the GitHub UI) and commit the change, and
include a short comment in the PR noting which SHA was chosen and why.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 79d71448-aa64-4d7e-8c52-b8b1529ffa00

📥 Commits

Reviewing files that changed from the base of the PR and between 5865333 and efdb1f9.

📒 Files selected for processing (2)
  • .github/workflows/python-lint.yml
  • .gitlab-ci.yml
💤 Files with no reviewable changes (1)
  • .gitlab-ci.yml

Comment thread .github/workflows/python-lint.yml

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.

Pull request overview

Migrates the repository’s lint CI from GitLab CI to GitHub Actions by wiring in RationAI’s shared Python lint reusable workflow.

Changes:

  • Removed the GitLab CI configuration that included the shared Python lint template.
  • Added a GitHub Actions workflow that runs on pushes/PRs to master and delegates to RationAI/.github’s reusable lint workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.gitlab-ci.yml Removes the existing GitLab-based lint pipeline definition.
.github/workflows/python-lint.yml Adds a GitHub Actions workflow that calls the shared python-lint reusable workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/python-lint.yml
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