From 529c26b33747e1afe0c098abc3eb3059c42deb08 Mon Sep 17 00:00:00 2001 From: Alexey Snigir <35569332+l0uden@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:56:51 +0100 Subject: [PATCH] vizro_ai support for whl file check (#172) --- .github/workflows/check-release.yml | 11 +++-- .../20231113_183619_alexey_snigir.md | 48 +++++++++++++++++++ 2 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 vizro-ai/changelog.d/20231113_183619_alexey_snigir.md diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index b0dd084ad..0a76fe8f7 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -30,10 +30,15 @@ jobs: echo "new_release=${{ env.NEW_RELEASE }}" >> $GITHUB_OUTPUT echo "package_name=${{ env.PACKAGE_NAME }}" >> $GITHUB_OUTPUT echo "package_version=${{ env.PACKAGE_VERSION }}" >> $GITHUB_OUTPUT + if [ "${{ env.PACKAGE_NAME }}" == "vizro-ai" ]; then + echo "dist_package_name=vizro_ai" >> $GITHUB_OUTPUT + else echo "dist_package_name=${{ needs.check-version.outputs.package_name }}" >> $GITHUB_OUTPUT + fi outputs: new_release: ${{ steps.version_check.outputs.new_release }} package_name: ${{ steps.version_check.outputs.package_name }} package_version: ${{ steps.version_check.outputs.package_version }} + dist_package_name: ${{ steps.version_check.outputs.dist_package_name }} build-publish: needs: [check-version] @@ -82,10 +87,10 @@ jobs: - name: Check correct package uploaded to PyPI run: | cd "${{ needs.check-version.outputs.package_name }}/dist" - local=$(md5sum ${{ needs.check-version.outputs.package_name }}-${{needs.check-version.outputs.package_version}}-py3-none-any.whl) + local=$(md5sum ${{ needs.check-version.outputs.dist_package_name }}-${{ needs.check-version.outputs.package_version }}-py3-none-any.whl) cd .. - pip download ${{ needs.check-version.outputs.package_name }}==${{needs.check-version.outputs.package_version}} -d . --no-deps --timeout 300 - pypi=$(md5sum ${{ needs.check-version.outputs.package_name }}-${{needs.check-version.outputs.package_version}}-py3-none-any.whl) + pip download ${{ needs.check-version.outputs.package_name }}==${{ needs.check-version.outputs.package_version }} -d . --no-deps --timeout 300 + pypi=$(md5sum ${{ needs.check-version.outputs.dist_package_name }}-${{ needs.check-version.outputs.package_version }}-py3-none-any.whl) if [[ $local = $pypi ]]; then echo "md5 hash is the same"; else echo "md5 hash is not the same"; exit 1; fi version-bump: diff --git a/vizro-ai/changelog.d/20231113_183619_alexey_snigir.md b/vizro-ai/changelog.d/20231113_183619_alexey_snigir.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-ai/changelog.d/20231113_183619_alexey_snigir.md @@ -0,0 +1,48 @@ + + + + + + + + +