From 55958cd4a9f437d3b287668d2189b4616fbea59c Mon Sep 17 00:00:00 2001 From: hustcer Date: Sun, 16 Feb 2025 21:37:50 +0800 Subject: [PATCH] chore: Update tests status badge to README --- .github/workflows/tests.yml | 6 +++--- README.md | 5 +++++ README.zh-CN.md | 5 +++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b2fee1..3919366 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -75,8 +75,8 @@ jobs: if: runner.os == 'macOS' && matrix.version == '*' && github.ref == 'refs/heads/main' shell: nu {0} run: | - let gist_id = 'b99391ee59016b17d0befe3331387e89' let filename = 'test-summary.json' + let gist_id = 'b99391ee59016b17d0befe3331387e89' let data = { files: { @@ -90,9 +90,9 @@ jobs: --redirect-mode 'follow' --content-type 'application/json' --headers { - 'Authorization': $'Bearer ${{ secrets.GITHUB_TOKEN }}' - 'Accept': 'application/vnd.github+json' 'X-GitHub-Api-Version': '2022-11-28' + 'Accept': 'application/vnd.github+json' + 'Authorization': $'Bearer ${{ secrets.GH_PAT }}' } $'https://api.github.com/gists/($gist_id)' ) | ignore diff --git a/README.md b/README.md index adfa9de..f0eed38 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # DeepSeek Code Review +![Tests](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.total&label=Tests) +![Passed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.passed&label=Passed&color=%2331c654) +![Failed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.failed&label=Failed&color=red) +![Skipped](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.skipped&label=Skipped&color=yellow) + [中文说明](README.zh-CN.md) `deepseek-review` also offers seamless integration with DeepSeek models on SiliconCloud. [Sign Up Now](https://cloud.siliconflow.cn/i/rqCdIxzS) to **Claim Your Free 20 Million Tokens** and start exploring its capabilities! diff --git a/README.zh-CN.md b/README.zh-CN.md index 2562b66..e41d13b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,5 +1,10 @@ # DeepSeek 代码审查 +![Tests](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.total&label=Tests) +![Passed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.passed&label=Passed&color=%2331c654) +![Failed](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.failed&label=Failed&color=red) +![Skipped](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgist.githubusercontent.com%2Fhustcer%2Fb99391ee59016b17d0befe3331387e89%2Fraw%2Ftest-summary.json&query=%24.skipped&label=Skipped&color=yellow) + 本工具也支持使用 SiliconCloud 上的 DeepSeek 模型,[注册](https://cloud.siliconflow.cn/i/rqCdIxzS) 就**免费赠送 2000 万 Token**,赶紧试试吧! ## 特性