From aa758ae4028596f5fd0b4e39e5541ee73f66a1f9 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 6 Aug 2025 11:52:10 -0400 Subject: [PATCH] Address linter findings in build-binaries.yml (#15019) ## Summary Addresses (mostly minor) findings in `build-binaries.yml`. This is 99% replacing template expansions with shell-interpolated variables, plus adding `persist-credentials: false` to every checkout. ## Test Plan See what happens in CI. --------- Signed-off-by: William Woodruff --- .github/workflows/build-binaries.yml | 228 ++++++++++++++++++--------- 1 file changed, 151 insertions(+), 77 deletions(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 0cc137df2..ffb539e25 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -40,12 +40,17 @@ env: CARGO_TERM_COLOR: always RUSTUP_MAX_RETRIES: 10 +permissions: {} + jobs: sdist: if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -62,9 +67,9 @@ jobs: run: | # We can't use `--find-links` here, since we need maturin, which means no `--no-index`, and without that option # we run the risk that pip pull uv from PyPI instead. - pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall - ${{ env.MODULE_NAME }} --help - python -m ${{ env.MODULE_NAME }} --help + pip install dist/${PACKAGE_NAME}-*.tar.gz --force-reinstall + ${MODULE_NAME} --help + python -m ${MODULE_NAME} --help uvx --help - name: "Upload sdist" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -80,9 +85,9 @@ jobs: args: --out crates/uv-build/dist -m crates/uv-build/Cargo.toml - name: "Test sdist uv-build" run: | - pip install crates/uv-build/dist/${{ env.PACKAGE_NAME }}_build-*.tar.gz --force-reinstall - ${{ env.MODULE_NAME }}-build --help - python -m ${{ env.MODULE_NAME }}_build --help + pip install crates/uv-build/dist/${PACKAGE_NAME}_build-*.tar.gz --force-reinstall + ${MODULE_NAME}-build --help + python -m ${MODULE_NAME}_build --help - name: "Upload sdist uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -94,6 +99,9 @@ jobs: runs-on: macos-14 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -148,6 +156,9 @@ jobs: runs-on: macos-14 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -163,9 +174,9 @@ jobs: args: --release --locked --out dist --features self-update - name: "Test wheel - aarch64" run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help - python -m ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help + python -m ${MODULE_NAME} --help uvx --help - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -199,9 +210,9 @@ jobs: args: --profile minimal-size --locked --out crates/uv-build/dist -m crates/uv-build/Cargo.toml - name: "Test wheel - aarch64" run: | - pip install ${{ env.PACKAGE_NAME }}_build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help - python -m ${{ env.MODULE_NAME }}_build --help + pip install ${PACKAGE_NAME}_build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help + python -m ${MODULE_NAME}_build --help - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -222,6 +233,9 @@ jobs: arch: x64 # not relevant here steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -239,9 +253,9 @@ jobs: if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} shell: bash run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help - python -m ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help + python -m ${MODULE_NAME} --help uvx --help uvw --help - name: "Upload wheels" @@ -252,11 +266,13 @@ jobs: - name: "Archive binary" shell: bash run: | - ARCHIVE_FILE=uv-${{ matrix.platform.target }}.zip - 7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/uv.exe - 7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/uvx.exe - 7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/uvw.exe + ARCHIVE_FILE=uv-${PLATFORM_TARGET}.zip + 7z a $ARCHIVE_FILE ./target/${PLATFORM_TARGET}/release/uv.exe + 7z a $ARCHIVE_FILE ./target/${PLATFORM_TARGET}/release/uvx.exe + 7z a $ARCHIVE_FILE ./target/${PLATFORM_TARGET}/release/uvw.exe sha256sum $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + PLATFORM_TARGET: ${{ matrix.platform.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -275,9 +291,9 @@ jobs: if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} shell: bash run: | - pip install ${{ env.PACKAGE_NAME }}_build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help - python -m ${{ env.MODULE_NAME }}_build --help + pip install ${PACKAGE_NAME}_build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help + python -m ${MODULE_NAME}_build --help - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -294,6 +310,9 @@ jobs: - { target: "x86_64-unknown-linux-gnu", cc: "gcc" } steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -337,9 +356,9 @@ jobs: - name: "Test wheel" if: ${{ startsWith(matrix.target, 'x86_64') }} run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help - python -m ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help + python -m ${MODULE_NAME} --help uvx --help - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -349,7 +368,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -358,6 +376,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -376,9 +396,9 @@ jobs: - name: "Test wheel uv-build" if: ${{ startsWith(matrix.target, 'x86_64') }} run: | - pip install ${{ env.PACKAGE_NAME }}_build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help - python -m ${{ env.MODULE_NAME }}_build --help + pip install ${PACKAGE_NAME}_build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help + python -m ${MODULE_NAME}_build --help - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -404,6 +424,9 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -429,11 +452,14 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }} --help + # python -m ${MODULE_NAME} --help uvx --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -442,7 +468,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.platform.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -451,6 +476,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.platform.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -478,10 +505,13 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }}_build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help + pip install ${PACKAGE_NAME}_build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }}_build --help + # python -m ${MODULE_NAME}_build --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -501,6 +531,9 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -529,11 +562,14 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }} --help + # python -m ${MODULE_NAME} --help uvx --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -542,7 +578,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.platform.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -551,6 +586,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.platform.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -578,10 +615,13 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }}-build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help + pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }}-build --help + # python -m ${MODULE_NAME}-build --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -606,6 +646,9 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -639,10 +682,10 @@ jobs: # apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 # pip3 install -U pip # run: | - # pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - # ${{ env.MODULE_NAME }} --help + # pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + # ${MODULE_NAME} --help # #(konsti) TODO: Enable this test on all platforms,currently `find_uv_bin` is failingto discover uv here. - # # python -m ${{ env.MODULE_NAME }} --helppython -m ${{ env.MODULE_NAME }} --help + # # python -m ${MODULE_NAME} --helppython -m ${MODULE_NAME} --help # uvx --help - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -652,7 +695,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.platform.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -661,6 +703,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.platform.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -704,6 +748,9 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -729,11 +776,14 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }} --help + # python -m ${MODULE_NAME} --help uvx --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -742,7 +792,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.platform.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -751,6 +800,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.platform.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -778,10 +829,13 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }}-build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help + pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }}-build --help + # python -m ${MODULE_NAME}-build --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -798,6 +852,9 @@ jobs: - i686-unknown-linux-musl steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -817,15 +874,15 @@ jobs: uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3 with: image: alpine:3.12 - options: -v ${{ github.workspace }}:/io -w /io + options: -v ${{ github.workspace }}:/io -w /io --env MODULE_NAME --env PACKAGE_NAME run: | apk add python3 python3 -m venv .venv .venv/bin/pip install --upgrade pip - .venv/bin/pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - .venv/bin/${{ env.MODULE_NAME }} --help + .venv/bin/pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + .venv/bin/${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # .venv/bin/python -m ${{ env.MODULE_NAME }} --help + # .venv/bin/python -m ${MODULE_NAME} --help .venv/bin/uvx --help - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -835,7 +892,6 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz @@ -844,6 +900,8 @@ jobs: cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.target }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -864,14 +922,14 @@ jobs: uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3 with: image: alpine:3.12 - options: -v ${{ github.workspace }}:/io -w /io + options: -v ${{ github.workspace }}:/io -w /io --env MODULE_NAME --env PACKAGE_NAME run: | apk add python3 python3 -m venv .venv .venv/bin/pip install --upgrade pip - .venv/bin/pip install ${{ env.PACKAGE_NAME }}-build --no-index --find-links crates/uv-build/dist --force-reinstall - .venv/bin/${{ env.MODULE_NAME }}-build --help - .venv/bin/python -m ${{ env.MODULE_NAME }}_build --help + .venv/bin/pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall + .venv/bin/${MODULE_NAME}-build --help + .venv/bin/python -m ${MODULE_NAME}_build --help - name: "Upload wheels uv-build" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -893,6 +951,9 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -917,11 +978,14 @@ jobs: apk add python3 run: | python -m venv .venv - .venv/bin/pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - .venv/bin/${{ env.MODULE_NAME }} --help + .venv/bin/pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + .venv/bin/${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # .venv/bin/python -m ${{ env.MODULE_NAME }} --help + # .venv/bin/python -m ${MODULE_NAME} --help .venv/bin/uvx --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1 name: "Test wheel (manylinux)" if: matrix.platform.arch == 'aarch64' @@ -933,11 +997,14 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall - ${{ env.MODULE_NAME }} --help + pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall + ${MODULE_NAME} --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }} --help + # python -m ${MODULE_NAME} --help uvx --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -946,16 +1013,17 @@ jobs: - name: "Archive binary" shell: bash run: | - TARGET=${{ matrix.platform.target }} ARCHIVE_NAME=uv-$TARGET ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz - PROFILE="${{ matrix.platform.arch == 'ppc64le' && 'release-no-lto' || 'release' }}" mkdir -p $ARCHIVE_NAME cp target/$TARGET/$PROFILE/uv $ARCHIVE_NAME/uv cp target/$TARGET/$PROFILE/uvx $ARCHIVE_NAME/uvx tar czvf $ARCHIVE_FILE $ARCHIVE_NAME shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 + env: + TARGET: ${{ matrix.platform.target }} + PROFILE: ${{ matrix.platform.arch == 'ppc64le' && 'release-no-lto' || 'release' }} - name: "Upload binary" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -982,10 +1050,13 @@ jobs: apk add python3 run: | python -m venv .venv - .venv/bin/pip install ${{ env.PACKAGE_NAME }}-build --no-index --find-links crates/uv-build/dist --force-reinstall - .venv/bin/${{ env.MODULE_NAME }}-build --help + .venv/bin/pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall + .venv/bin/${MODULE_NAME}-build --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # .venv/bin/python -m ${{ env.MODULE_NAME }}_build --help + # .venv/bin/python -m ${MODULE_NAME}_build --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1 name: "Test wheel (manylinux)" if: matrix.platform.arch == 'aarch64' @@ -997,10 +1068,13 @@ jobs: apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 pip3 install -U pip run: | - pip install ${{ env.PACKAGE_NAME }}-build --no-index --find-links crates/uv-build/dist --force-reinstall - ${{ env.MODULE_NAME }}-build --help + pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall + ${MODULE_NAME}-build --help # TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here. - # python -m ${{ env.MODULE_NAME }}_build --help + # python -m ${MODULE_NAME}_build --help + env: | + PACKAGE_NAME: ${{ env.PACKAGE_NAME }} + MODULE_NAME: ${{ env.MODULE_NAME }} - name: "Upload wheels" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: