From 451c2dc7421f76494983f733a5d37c41305b995f Mon Sep 17 00:00:00 2001 From: "Lanzrath, Hannah" Date: Fri, 6 Dec 2024 12:21:43 +0100 Subject: [PATCH] Check if cache works now --- .github/workflows/pipeline.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index b6e86719..68963bdb 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -39,14 +39,14 @@ jobs: run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT shell: bash - - name: Restore Conda Environment Cache + - name: Restore cache and save updated environment after job uses: actions/cache@v4 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: Set up Miniforge and Create Environment + - name: No cache found - Create environment with Miniforge uses: conda-incubator/setup-miniconda@v3.1.0 with: miniforge-version: latest @@ -58,11 +58,11 @@ jobs: auto-activate-base: false if: steps.cache.outputs.cache-hit != 'true' - - name: Install + - name: Install CADET-Process run: | pip install -e ./[testing] - - name: Check Python and Test + - name: Check Python and run tests run: | PYTHON_VERSION=$(python --version | awk '{print $2}') echo "Running on Python version: $PYTHON_VERSION"