From 0d862be4fb5e3c6b02a7f3708333aeb51b0d9b33 Mon Sep 17 00:00:00 2001 From: WindowScary321 <126940686+WindowScary321@users.noreply.github.com> Date: Wed, 18 Nov 2026 13:16:10 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20d=C3=B9ng=20setup-uv=20=E1=BB=9F=20job?= =?UTF-8?q?=20verify=20v=C3=A0=20t=C4=83ng=20th=E1=BB=9Di=20gian=20ch?= =?UTF-8?q?=E1=BB=9D=20PyPI=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 7 +++++-- .github/workflows/testpypi.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6904e2..2256d74 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -215,9 +215,11 @@ jobs: sparse-checkout: /scripts/ sparse-checkout-cone-mode: false persist-credentials: false - - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 + - uses: astral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9 # v7 with: + version: "0.13.0" python-version: ${{ matrix.python-version }} + enable-cache: false - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 with: name: ${{ needs.ci.outputs.artifact_name }} @@ -228,8 +230,9 @@ jobs: VERSION: ${{ needs.validate.outputs.version }} MANIFEST_SHA256: ${{ needs.ci.outputs.manifest_sha256 }} run: >- + uv run --no-project --python "${{ matrix.python-version }}" python -I scripts/smoke_index.py --expected-version "$VERSION" - --artifact-dir dist --manifest-sha256 "$MANIFEST_SHA256" --attempts 6 --delay 10 + --artifact-dir dist --manifest-sha256 "$MANIFEST_SHA256" --attempts 6 --delay 20 release: name: Tạo hoặc hoàn tất GitHub Release bằng cùng artifact diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index 1a5a3e9..75a85f3 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -200,9 +200,11 @@ jobs: sparse-checkout: /scripts/ sparse-checkout-cone-mode: false persist-credentials: false - - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 + - uses: astral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9 # v7 with: + version: "0.13.0" python-version: ${{ matrix.python-version }} + enable-cache: false - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 with: name: ${{ needs.ci.outputs.artifact_name }} @@ -213,5 +215,6 @@ jobs: VERSION: ${{ needs.validate.outputs.version }} MANIFEST_SHA256: ${{ needs.ci.outputs.manifest_sha256 }} run: >- + uv run --no-project --python "${{ matrix.python-version }}" python -I scripts/smoke_index.py --expected-version "$VERSION" - --artifact-dir dist --manifest-sha256 "$MANIFEST_SHA256" --test-pypi --attempts 6 --delay 10 + --artifact-dir dist --manifest-sha256 "$MANIFEST_SHA256" --test-pypi --attempts 6 --delay 20