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