Skip to content

Commit

Permalink
FIX: Add missing git fetch to get version history.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Oct 30, 2024
1 parent c96bbd0 commit 389dc1a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions act/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 389dc1a

Please sign in to comment.