From 2d63a51d7f50e6ac8948c6d5946f245a27f6cd31 Mon Sep 17 00:00:00 2001 From: Curry Date: Wed, 24 Jun 2026 02:37:15 +0800 Subject: [PATCH 1/2] chore: add DeepSource configuration --- .deepsource.toml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..252f3a4 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,29 @@ +version = 1 + +test_patterns = [ + "tests/**", + "test/**", + "**/*test*", + "**/*.test.*", +] + +exclude_patterns = [ + "node_modules/**", + "dist/**", + "target/**", + "vendor/**", + "build/**", + "coverage/**", + "bundle.js", + "**/bundle.js", + "**/generated/**", +] + +[[analyzers]] +name = "python" +enabled = true + + [analyzers.meta] + runtime_version = "3.x.x" + max_line_length = 120 + cyclomatic_complexity_threshold = "high" From 585f13c0bfcb65f1182d059fe02591b9b160b128 Mon Sep 17 00:00:00 2001 From: 2233admin <57929895+2233admin@users.noreply.github.com> Date: Thu, 22 Oct 2026 22:14:57 +0800 Subject: [PATCH 2/2] ci: route owned branch and PR checks to 5070X --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 577a2ba..ffb1161 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_5070X_ENABLED == 'true' && (((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && startsWith(github.ref, 'refs/heads/')) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && 'ci-5070x-linux' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4