diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index e6a18b6ee0..1423ce5813 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -30,6 +30,10 @@ jobs: environment-name: act-docs cache-downloads: true + - name: Fetch all history for all tags and branches + run: | + git fetch --prune --unshallow + - name: Install ACT run: | pip install -e . --no-deps --force-reinstall diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdf652cb6b..b545278ca9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,10 @@ jobs: environment-name: act_env micromamba-version: 1.5.10-0 + - name: Fetch all history for all tags and branches + run: | + git fetch --prune --unshallow + - name: Install ACT run: | python -m pip install -e . --no-deps --force-reinstall diff --git a/act/__init__.py b/act/__init__.py index eaaf1bb041..c6aeb1f29c 100644 --- a/act/__init__.py +++ b/act/__init__.py @@ -30,8 +30,8 @@ __getattr__, __dir__, _ = lazy.attach(__name__, submodules) # Get the version -#try: -__version__ = _importlib_metadata.version("act-atmos") -#except _importlib_metadata.PackageNotFoundError: -# package is not installed -# __version__ = "0.0.0" +try: + __version__ = _importlib_metadata.version("act-atmos") +except _importlib_metadata.PackageNotFoundError: + # package is not installed + __version__ = "0.0.0"