Skip to content

ci: add unit tests GitHub Actions workflow - #598

Draft
MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:ci/add-unit-tests-workflow
Draft

MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:ci/add-unit-tests-workflow

Conversation

@MyLeeJiEun

@MyLeeJiEun MyLeeJiEun commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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

Multica issue: https://agentapi-dev.uniontech.com/issues/01a1aa70-323d-71f6-8654-c64c18ac3878

Summary by Sourcery

CI:

  • Add a GitHub Actions workflow that builds and runs Qt6 unit tests on pushes and pull requests targeting master, with dependency setup and concurrent-run cancellation.

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

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

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[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

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add a GitHub Actions workflow that installs Qt6 build dependencies, builds the project with tests enabled, and runs the unit-test suite for pushes and pull requests targeting master.

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

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

@MyLeeJiEun
MyLeeJiEun force-pushed the ci/add-unit-tests-workflow branch from d84061f to da080b2 Compare November 12, 2026 07:47
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 ci/add-unit-tests-workflow branch from da080b2 to 875e88d Compare November 12, 2026 07:49
@deepin-bot

deepin-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.7.54
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #600

This branch has not been deployed

No deployments
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