From 5efd05110895bf4b9cbb8d45605dcae810328c38 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Sat, 30 Nov 2024 12:03:49 +0000 Subject: [PATCH] ci: remove vegafusion from blocking releases, assert current branch in bump_version (#1470) --- .github/workflows/publish_to_pypi.yml | 4 ---- utils/bump_version.py | 9 +++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 17986a7da..74bd5a318 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -7,12 +7,8 @@ on: jobs: - slow-downstream-tests: - uses: ./.github/workflows/downstream_tests_slow.yml - build: name: Build distribution 📦 - needs: slow-downstream-tests runs-on: ubuntu-latest steps: diff --git a/utils/bump_version.py b/utils/bump_version.py index 4230e6899..59d1aa7f6 100644 --- a/utils/bump_version.py +++ b/utils/bump_version.py @@ -13,6 +13,15 @@ sys.exit(1) subprocess.run(["git", "reset", "--hard", "upstream/main"]) +if ( + subprocess.run( + ["git", "branch", "--show-current"], text=True, capture_output=True + ).stdout.strip() + != "bump-version" +): + msg = "`bump_version.py` should be run from `bump-version` branch" + raise RuntimeError(msg) + # Delete local tags, if present try: # Get the list of all tags