diff --git a/.cz.toml b/.cz.toml index 863d3e75..570b859b 100644 --- a/.cz.toml +++ b/.cz.toml @@ -1,10 +1,12 @@ [tool.commitizen] name = "cz_conventional_commits" version = "2.3.3" +version_provider = "poetry" version_files = [ "pyproject.toml", "docs/source/conf.py", - "hypernetx/__init__.py" + "hypernetx/__init__.py", + ".cz.toml" ] tag_format = "v$major.$minor.$patch$prerelease" update_changelog_on_bump = false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce188394..01874239 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: triggeredBy: description: 'Name of team member who is manually triggering this workflow' required: true + default: '' defaults: run: @@ -28,10 +29,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - - run: | - echo "This workflow was triggered by: $TRIGGER_PERSON" + - if: ${{ inputs.triggeredBy != '' }} + run: | + echo "This workflow was triggered by: $TEAM_MEMBER" env: - TRIGGER_PERSON: ${{ inputs.triggeredBy }} + TEAM_MEMBER: ${{ inputs.triggeredBy }} - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." diff --git a/.github/workflows/publish-to-dockerhub.yml b/.github/workflows/publish-to-dockerhub.yml index b705f448..bc3bd6b4 100644 --- a/.github/workflows/publish-to-dockerhub.yml +++ b/.github/workflows/publish-to-dockerhub.yml @@ -19,6 +19,7 @@ on: triggeredBy: description: 'Name of team member who is manually triggering this workflow' required: true + default: '' jobs: @@ -31,12 +32,11 @@ jobs: attestations: write id-token: write steps: - - run: | - echo "This workflow was triggered by: $TRIGGER_PERSON" + - if: ${{ inputs.triggeredBy != '' }} + run: | + echo "This workflow was triggered by: $TEAM_MEMBER" env: - TRIGGER_PERSON: ${{ inputs.triggeredBy }} - IMAGE_NAME: hypernetx/hypernetx:latest - + TEAM_MEMBER: ${{ inputs.triggeredBy }} - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." @@ -57,7 +57,7 @@ jobs: id: push uses: docker/build-push-action@v5 with: - tags: ${{ env.IMAGE_NAME }} + tags: hypernetx/hypernetx:latest push: true - name: Generate artifact attestation diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index d455b713..c87be78d 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -19,6 +19,7 @@ on: triggeredBy: description: 'Name of team member who is manually triggering this workflow' required: true + default: '' permissions: contents: read @@ -27,10 +28,11 @@ jobs: publish-to-pypi: runs-on: ubuntu-latest steps: - - run: | - echo "This workflow was triggered by: $TRIGGER_PERSON" + - if: ${{ inputs.triggeredBy != '' }} + run: | + echo "This workflow was triggered by: $TEAM_MEMBER" env: - TRIGGER_PERSON: ${{ inputs.triggeredBy }} + TEAM_MEMBER: ${{ inputs.triggeredBy }} - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." diff --git a/docs/source/conf.py b/docs/source/conf.py index 0abb590e..c72b4246 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,7 +19,7 @@ import os -__version__ = "2.3.2" +__version__ = "2.3.3" # If extensions (or modules to document with autodoc) are in another directory, diff --git a/hypernetx/__init__.py b/hypernetx/__init__.py index 1a686e22..3ea7c6f7 100644 --- a/hypernetx/__init__.py +++ b/hypernetx/__init__.py @@ -11,4 +11,4 @@ from hypernetx.utils import * from hypernetx.utils.toys import * -__version__ = "2.3.2" +__version__ = "2.3.3" diff --git a/pyproject.toml b/pyproject.toml index dbd3bf3a..c60467a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hypernetx" -version = "2.3.2" +version = "2.3.3" description = "HyperNetX is a Python library for the creation and study of hypergraphs." authors = ["Brenda Praggastis ", "Dustin Arendt ", "Sinan Aksoy ", "Emilie Purvine ",