From aa93ffcd98638a26b36e33d3b66a08e77e921281 Mon Sep 17 00:00:00 2001 From: "Lanzrath, Hannah" Date: Mon, 9 Dec 2024 12:51:16 +0100 Subject: [PATCH] Add Mamba run --- .github/workflows/pipeline.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 4cc51ecd..487a1bab 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -43,7 +43,7 @@ jobs: miniforge-version: latest use-mamba: true activate-environment: cadet-process - channels: conda-forge, + channels: conda-forge - name: Cache conda uses: actions/cache@v4 @@ -53,6 +53,7 @@ jobs: with: path: ${{ env.CONDA }}/envs key: ${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }} + id: cache - name: Update environment run: | @@ -64,20 +65,20 @@ jobs: - name: Install run: | - pip install -e ./[testing] + mamba run pip install -e ./[testing] - name: Test run: | - python -m unittest discover -s tests + mamba run python -m unittest discover -s tests - name: Install pypa/build run: | - python -m pip install build --user + mamba run python -m pip install build --user - name: Build binary wheel and source tarball run: | - python -m build --sdist --wheel --outdir dist/ . + mamba run python -m build --sdist --wheel --outdir dist/ . - name: Test Wheel install and import run: | - python -c "import CADETProcess; print(CADETProcess.__version__)" + mamba run python -c "import CADETProcess; print(CADETProcess.__version__)"