From 57b0914788acfae53e069b7f582bb7514ef35f06 Mon Sep 17 00:00:00 2001 From: Iain Russell <40060766+iainrussell@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:47:10 +0000 Subject: [PATCH] Temporary: lenient cd-pypi.yml --- .github/workflows/cd-pypi.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/cd-pypi.yml b/.github/workflows/cd-pypi.yml index 1126edc..82b570c 100644 --- a/.github/workflows/cd-pypi.yml +++ b/.github/workflows/cd-pypi.yml @@ -13,33 +13,12 @@ on: jobs: deploy: - if: ${{ github.ref_type == 'tag' || github.event_name == 'release' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: "0" - - name: Test tag name pattern - shell: python - run: | - import re - import sys - - tag_pattern = r"${{ vars.TAG_REGEX_FOR_DEPLOYMENT }}" - ref = "${{ github.ref_name }}" - - if not tag_pattern: - sys.exit(0) - - if not re.match(tag_pattern, ref): - print(f"::error::{ref} does not match {tag_pattern}") - sys.exit(1) - - - name: Test branch name pattern - if: ${{ vars.BRANCH_REGEX_FOR_DEPLOYMENT != '' }} - run: | - git branch --all --list --format "%(refname:lstrip=-1)" --contains "${{ github.ref_name }}" | grep -E "${{ vars.BRANCH_REGEX_FOR_DEPLOYMENT }}" - name: Set up Python uses: actions/setup-python@v4 @@ -51,13 +30,6 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine build - - name: Check version - run: | - if [ -f "setup.py" ]; then - release=${{ github.ref_name }} - version=$(python setup.py --version) - test "$release" == "$version" - fi - name: Build and publish to pypi if: ${{ !inputs.testpypi }}