diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f08d97c..9fa3511 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,6 +43,11 @@ jobs: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-py${{ matrix.python-version }}-${{ hashFiles('ci/requirements/**.yml') }} + + - name: Fetch all history for all tags and branches + run: | + git fetch --prune + - uses: mamba-org/setup-micromamba@v1 with: environment-file: ci/environment.yml diff --git a/setup.py b/setup.py index c370da4..664b8ef 100644 --- a/setup.py +++ b/setup.py @@ -42,4 +42,8 @@ 'Tracker': 'https://github.com/openradar/cmweather/issues', }, zip_safe=False, + use_scm_version={ + 'version_scheme': 'post-release', + 'local_scheme': 'dirty-tag', + }, )