Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

chore(ci): 前置版本说明核验并校验发布脚本

longmeidaofc9f385ded63
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d43a83db6..64b658695 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,7 +31,10 @@ jobs:
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}
- run: python scripts/release_tag.py --repo "$GITHUB_REPOSITORY" --verify-sha "$GITHUB_SHA"
+ run: |
+ python scripts/release_tag.py --repo "$GITHUB_REPOSITORY" --verify-sha "$GITHUB_SHA"
+ python -c 'import os; from pathlib import Path; from scripts.version_bump import read_version; assert os.environ["GITHUB_REF_NAME"] == "v" + read_version(Path.cwd()), "Tag 与版本不一致"'
+ python scripts/changelog.py --notes "${GITHUB_REF_NAME#v}" --to "$RUNNER_TEMP/release-notes.md"
ffmpeg:
name: Windows FFmpeg 与对应源码
@@ -228,5 +231,5 @@ jobs:
VERSION: ${{ needs.windows.outputs.version }}
run: |
cd release
- sha256sum *.zip *-setup.exe > SHA256SUMS.txt
- gh release create "$GITHUB_REF_NAME" *.zip *-setup.exe SHA256SUMS.txt --verify-tag --prerelease --title "Peach $VERSION · Windows 测试版" --notes-file RELEASE_NOTES.md
+ sha256sum ./*.zip ./*-setup.exe > SHA256SUMS.txt
+ gh release create "$GITHUB_REF_NAME" ./*.zip ./*-setup.exe SHA256SUMS.txt --verify-tag --prerelease --title "Peach $VERSION · Windows 测试版" --notes-file RELEASE_NOTES.md
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 609815fda..a658c0534 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -419,21 +419,6 @@ class BrowserSuiteWorkflowTests(unittest.TestCase):
for required in ("web-e2e", "web-bundle"):
self.assertIn(required, [name.strip() for name in needs.group(1).split(",")])
- def test_the_browser_job_yields_to_a_wide_matrix_that_already_runs_the_web_scope(self):
- """全量矩阵的 Windows 行本身就跑 `web` 域,`web-e2e` 再跑就是同一批用例两遍。
-
- 它只按 `plan` 的 `wide` 让路,汇总也只在 `wide` 时接受它的 skipped;条件写错或
- `wide` 没写进 `GITHUB_OUTPUT`,PR 上它一停,汇总就红,不会变成静默不跑。
- """
- job = self.job("web-e2e")
- self.assertIn("needs: [plan]", job)
- self.assertIn("if: needs.plan.outputs.wide != 'true'", job)
- verified = self.job("verified")
- self.assertIn("WIDE: ${{ needs.plan.outputs.wide }}", verified)
- self.assertIn('name == "web-e2e" and wide and job["result"] == "skipped"', verified)
- self.assertIn('wide: ${{ steps.plan.outputs.wide }}', self.job("plan"),
- "plan job 没有向后续任务提供全量矩阵状态")
-
def test_matrix_rows_beyond_core_install_what_the_node_suites_need(self):
job = self.job("python")
for step in ("actions/setup-node", "npm --prefix frontend ci",
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index d277f16a4..151e38d3b 100644
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@ -41,7 +41,7 @@ BASELINE: dict[str, int] = {
"test_fastapi_api.py": 4,
"test_follow_assets.py": 1,
"test_follow_web.py": 1,
- "test_frontend_build.py": 25,
+ "test_frontend_build.py": 20,
"test_job_status.py": 3,
"test_metadata_library.py": 6,
"test_repo_hygiene.py": 2,