From f70bada24a7aa886f9b2cfe931188aed6e10b898 Mon Sep 17 00:00:00 2001 From: Robert Applin Date: Mon, 10 Apr 2023 20:19:55 +0100 Subject: [PATCH] Change conda yaml to test --- .github/workflows/dependencies.yml | 14 ++++++++------ move-cache.sh | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 92b27e3..0194f4e 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -23,14 +23,10 @@ jobs: miniforge-version: latest miniforge-variant: Mambaforge activate-environment: test-env - environment-file: conda/developer.yml + environment-file: conda/testing.yml python-version: 3.8 auto-activate-base: false - - name: Create cache directory - run: | - mkdir cache - - name: Cache node modules uses: actions/cache@v2 with: @@ -39,12 +35,18 @@ jobs: - name: Create cache directory run: | + ls cache source $GITHUB_WORKSPACE/move-cache.sh + echo HELLO + echo "$(cat dependency-list.txt)" - name: Create list of dependencies run: | source $GITHUB_WORKSPACE/create-dependency-list.sh - ls $GITHUB_WORKSPACE/artifacts + echo HELLO + echo "$(cat dependency-list-2023-04-10.txt)" + echo HELLO + echo "$(cat cache/dependency-list.txt)" - name: Archive dependency list uses: actions/upload-artifact@v3 diff --git a/move-cache.sh b/move-cache.sh index fcdd63d..6670dc8 100644 --- a/move-cache.sh +++ b/move-cache.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash if test -f $GITHUB_WORKSPACE/cache/dependency-list.txt; then + echo "Found dependency cache" mv $GITHUB_WORKSPACE/cache/dependency-list.txt $GITHUB_WORKSPACE/dependency-list.txt else + echo "No dependency cache found" touch $GITHUB_WORKSPACE/dependency-list.txt fi