From 840091050c290af3570124a55dfe95ab7002f10b Mon Sep 17 00:00:00 2001 From: PGijsbers Date: Fri, 14 Jun 2024 13:28:33 +0200 Subject: [PATCH 1/2] Update version grep to include post release --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f9cf27f9..fa848930 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -44,13 +44,13 @@ jobs: python-version: "3.10" - name: Match version with input run: | - GAMA_VERSION=$(grep -Po "\d+\.\d+\.\d+(\.dev\d*)?" "gama/__version__.py") + GAMA_VERSION=$(grep -Po "\d+\.\d+\.\d+((\.dev\d*)|(\.post\d*))?" "gama/__version__.py") NEW_VERSION=${{ inputs.year }}.${{ inputs.macro }}.${{ inputs.micro }}${{ inputs.suffix }} echo $GAMA_VERSION $NEW_VERSION exit $([ $GAMA_VERSION == $NEW_VERSION ]) - name: Match version with tag run: | - GAMA_VERSION=$(grep -Po "\d+\.\d+\.\d+(\.dev\d*)?" "gama/__version__.py") + GAMA_VERSION=$(grep -Po "\d+\.\d+\.\d+((\.dev\d*)|(\.post\d*))?" "gama/__version__.py") NEW_VERSION=${{ github.ref }} echo refs/tags/v$GAMA_VERSION $NEW_VERSION exit $([ refs/tags/v$GAMA_VERSION == $NEW_VERSION ]) From 02faf9c2b9b402e3d57c64ba704363035f488f18 Mon Sep 17 00:00:00 2001 From: PGijsbers Date: Fri, 14 Jun 2024 13:29:56 +0200 Subject: [PATCH 2/2] Update project location url --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index fa848930..8528c306 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -94,7 +94,7 @@ jobs: python -m pip install dist/*.whl - name: Run example run: | - curl https://raw.githubusercontent.com/PGijsbers/gama/master/examples/classification_example.py > example.py + curl https://raw.githubusercontent.com/openml-labs/gama/master/examples/classification_example.py > example.py # First reduce runtime for 3 minutes to 1 minute, does not work for Windows but fails silently. sed -i.bak "s/180/60/" example.py sed -i.bak "s/3/1/" example.py