From 394b91874273e9861ee3676b11ee66edc5c3327a Mon Sep 17 00:00:00 2001 From: FNTwin Date: Tue, 24 Sep 2024 14:22:38 -0400 Subject: [PATCH] Switched python setup with micromamba action for semver --- .github/workflows/release.yaml | 36 +++++++++++----------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ba08e51..c709bfe 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,17 +27,18 @@ jobs: - name: Checkout the code uses: actions/checkout@v4 - - name: Set up Python 3.11 - uses: actions/setup-python@v5 + - name: Setup mamba + uses: mamba-org/setup-micromamba@v1 with: - python-version: '3.11' - cache: pip - - #- name: Install requirements - # run: | - # pip install -U pip - # pip install .[dev] - + environment-name: my_env + cache-environment: true + cache-downloads: true + create-args: >- + python=3.11 + pip + semver + python-build + setuptools_scm - name: Check the version is valid semver run: | @@ -117,18 +118,3 @@ jobs: tag_name: ${{ inputs.release-version }} body: ${{steps.github_release.outputs.changelog}} - - name: Build book - run: | - jupyter-book build docs - - - name: Setup Pages - uses: actions/configure-pages@v3 - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: "docs/_build/html" - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2