Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/workflow publish #217

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ])
Expand Down Expand Up @@ -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
Expand Down
Loading