Skip to content

ci: add unit tests GitHub Actions workflow - #1805

Draft
MyLeeJiEun wants to merge 1 commit into
masterfrom
agent/bot/3dd4f63a14a5
Draft

MyLeeJiEun wants to merge 1 commit into
masterfrom
agent/bot/3dd4f63a14a5

Conversation

@MyLeeJiEun

@MyLeeJiEun MyLeeJiEun commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add .github/workflows/unit-tests.yml to run unit tests automatically on push to master and pull requests.

  • Uses ubuntu-22.04 runner with linuxdeepin/deepin:crimson container
  • Installs build dependencies from deepin crimson repository
  • Builds with CMake BUILD_TESTING=ON and runs ctest

Multica Issue: DDE-574 (01a1aa70-323d-71f6-8654-c64c18ac3878)

Summary by Sourcery

Automate unit-test validation for changes targeting the master branch.

CI:

  • Add a GitHub Actions workflow that builds the project with testing enabled and runs the unit test suite on pushes and pull requests targeting master.
  • Use a Deepin Crimson container with the required build dependencies and cancel superseded workflow runs for the same ref.

@deepin-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add a GitHub Actions workflow that installs dependencies in the Deepin Crimson container, builds with testing enabled, and runs CTest on pushes and pull requests targeting master.

  • .github/workflows/unit-tests.yml L1-68

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MyLeeJiEun

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1. Add .github/workflows/unit-tests.yml to run unit tests on push/PR
2. Use ubuntu-22.04 runner with deepin crimson container for deps
3. Build with appropriate build system and run test suite

Influence:
1. Verify workflow triggers on push to master and pull requests
2. Confirm unit tests execute and report results correctly
3. Check dependency installation completes without errors

ci: 添加单元测试 GitHub Actions 工作流

1. 添加 .github/workflows/unit-tests.yml 在 push/PR 时运行单元测试
2. 使用 ubuntu-22.04 runner 和 deepin crimson 容器安装依赖
3. 使用对应构建系统构建并运行测试套件

Influence:
1. 验证工作流在 push 到 master 和 PR 时正确触发
2. 确认单元测试执行并正确报告结果
3. 检查依赖安装无错误完成
@MyLeeJiEun
MyLeeJiEun force-pushed the agent/bot/3dd4f63a14a5 branch from 31f54e7 to a888ae3 Compare November 12, 2026 07:47
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