Skip to content

Commit

Permalink
Reactivate everything
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Nov 10, 2023
1 parent ca9b525 commit 7769acf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,49 +78,49 @@ jobs:
if [ "${{ needs.check-version.outputs.PACKAGE_NAME }}" == "vizro-ai" ]; then
echo 'PYPI_TOKEN=${{ secrets.VIZRO_AI_TEST_PYPI_TOKEN }}' >> $GITHUB_ENV
fi
# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# # repository-url: https://test.pypi.org/legacy/
# packages-dir: ${{ needs.check-version.outputs.package_name }}/dist
# password: ${{ env.PYPI_TOKEN }}
# - name: Check correct package uploaded to PyPI
# run: |
# cd "${{ needs.check-version.outputs.package_name }}/dist"
# local=$(md5sum vizro-${{needs.check-version.outputs.package_version}}-py3-none-any.whl)
# cd ..
# pip download vizro==${{needs.check-version.outputs.package_version}} -d . --no-deps --timeout 300
# pypi=$(md5sum vizro-${{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
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# repository-url: https://test.pypi.org/legacy/ # Activate for test.pypi.org
packages-dir: ${{ needs.check-version.outputs.package_name }}/dist
password: ${{ env.PYPI_TOKEN }}
- name: Check correct package uploaded to PyPI
run: |
cd "${{ needs.check-version.outputs.package_name }}/dist"
local=$(md5sum vizro-${{needs.check-version.outputs.package_version}}-py3-none-any.whl)
cd ..
pip download vizro==${{needs.check-version.outputs.package_version}} -d . --no-deps --timeout 300
pypi=$(md5sum vizro-${{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:
# needs: [check-version, build-publish]
# if: |
# needs.check-version.outputs.new_release == 'True'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install hatch
# - name: Bump version to next patch
# run: |
# formatted_date=$(date +"%Y-%m-%d/%H-%M-%S")
# cd "${{ needs.check-version.outputs.package_name }}"
# git checkout -b "release/version_bump_next_minor/${formatted_date}"
# hatch version patch,dev
# hatch run changelog:add
# hatch run schema
# git config user.email "145135826+vizro-svc@users.noreply.github.com"
# git config user.name "Vizro Team"
# git add -A
# git commit -m "version bump"
# git push --set-upstream origin release/version_bump_next_minor/${formatted_date}
# ./../tools/version-bump.sh mckinsey vizro ${{ secrets.GITHUB_TOKEN }} \
# ${{needs.check-version.outputs.package_name}} \
# ${{needs.check-version.outputs.package_version}} release/version_bump_next_minor/${formatted_date}
version-bump:
needs: [check-version, build-publish]
if: |
needs.check-version.outputs.new_release == 'True'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Bump version to next patch
run: |
formatted_date=$(date +"%Y-%m-%d/%H-%M-%S")
cd "${{ needs.check-version.outputs.package_name }}"
git checkout -b "release/version_bump_next_minor/${formatted_date}"
hatch version patch,dev
hatch run changelog:add
hatch run schema
git config user.email "145135826+vizro-svc@users.noreply.github.com"
git config user.name "Vizro Team"
git add -A
git commit -m "version bump"
git push --set-upstream origin release/version_bump_next_minor/${formatted_date}
./../tools/version-bump.sh mckinsey vizro ${{ secrets.GITHUB_TOKEN }} \
${{needs.check-version.outputs.package_name}} \
${{needs.check-version.outputs.package_version}} release/version_bump_next_minor/${formatted_date}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Uncomment the section that is right (remove the HTML comment wrapper).

### Highlights ✨

- Initial release of vizro-ai package. Vizro-AI is a tool for generating data visualizations. ([#138](https://github.com/mckinsey/vizro/pull/138))
- Initial release of `vizro-ai` package. Vizro-AI is a tool for generating data visualizations. ([#138](https://github.com/mckinsey/vizro/pull/138))

<!--
### Removed
Expand Down

0 comments on commit 7769acf

Please sign in to comment.