diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index d052c077..e765ddc0 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,12 +1,23 @@ -name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package on: release: types: [published] +permissions: + contents: read + jobs: - build-n-publish: - name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + deploy: + runs-on: ubuntu-latest steps: diff --git a/tutorials/Tutorial 1 - HNX Basics.ipynb b/tutorials/Tutorial 1 - HNX Basics.ipynb index bf1d00ac..06a33c71 100644 --- a/tutorials/Tutorial 1 - HNX Basics.ipynb +++ b/tutorials/Tutorial 1 - HNX Basics.ipynb @@ -11,8 +11,6 @@ "\n", "try:\n", " import hypernetx as hnx\n", - "except ModuleNotFoundError:\n", - " pass # ignore ModuleNotFoundError for modularity and contagion dependencies\n", "except ImportError:\n", " print(\"Installing HyperNetX.........\")\n", " !pip install hypernetx --quiet 2> /dev/null\n", diff --git a/tutorials/Tutorial 2 - Visualization Methods.ipynb b/tutorials/Tutorial 2 - Visualization Methods.ipynb index b40b6e99..67d694a4 100644 --- a/tutorials/Tutorial 2 - Visualization Methods.ipynb +++ b/tutorials/Tutorial 2 - Visualization Methods.ipynb @@ -11,8 +11,6 @@ "\n", "try:\n", " import hypernetx as hnx\n", - "except ModuleNotFoundError:\n", - " pass # ignore ModuleNotFoundError for modularity and contagion dependencies\n", "except ImportError:\n", " print(\"Installing HyperNetX.........\")\n", " !pip install hypernetx --quiet 2> /dev/null\n", diff --git a/tutorials/Tutorial 3 - LesMis Case Study.ipynb b/tutorials/Tutorial 3 - LesMis Case Study.ipynb index 42e0046f..f1b1c1a3 100644 --- a/tutorials/Tutorial 3 - LesMis Case Study.ipynb +++ b/tutorials/Tutorial 3 - LesMis Case Study.ipynb @@ -34,8 +34,6 @@ "\n", "try:\n", " import hypernetx as hnx\n", - "except ModuleNotFoundError:\n", - " pass # ignore ModuleNotFoundError for modularity and contagion dependencies\n", "except ImportError:\n", " print(\"Installing HyperNetX.........\")\n", " !pip install hypernetx --quiet 2> /dev/null\n", diff --git a/tutorials/Tutorial 4 - LesMis Visualizations-BookTour.ipynb b/tutorials/Tutorial 4 - LesMis Visualizations-BookTour.ipynb index 6209f15a..cf3bc321 100644 --- a/tutorials/Tutorial 4 - LesMis Visualizations-BookTour.ipynb +++ b/tutorials/Tutorial 4 - LesMis Visualizations-BookTour.ipynb @@ -11,8 +11,6 @@ "\n", "try:\n", " import hypernetx as hnx\n", - "except ModuleNotFoundError:\n", - " pass # ignore ModuleNotFoundError for modularity and contagion dependencies\n", "except ImportError:\n", " print(\"Installing HyperNetX.........\")\n", " !pip install hypernetx --quiet 2> /dev/null\n", diff --git a/tutorials/Tutorial 6 - Homology mod 2 for TriLoop Example.ipynb b/tutorials/Tutorial 6 - Homology mod 2 for TriLoop Example.ipynb index 5ca6fd4e..6e1b7781 100644 --- a/tutorials/Tutorial 6 - Homology mod 2 for TriLoop Example.ipynb +++ b/tutorials/Tutorial 6 - Homology mod 2 for TriLoop Example.ipynb @@ -12,8 +12,6 @@ "\n", "try:\n", " import hypernetx as hnx\n", - "except ModuleNotFoundError:\n", - " pass # ignore ModuleNotFoundError for modularity and contagion dependencies\n", "except ImportError:\n", " print(\"Installing HyperNetX.........\")\n", " !pip install hypernetx --quiet 2> /dev/null\n",