Skip to content

Commit

Permalink
Change conda yaml to test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertapplin committed Apr 11, 2023
1 parent 15cac31 commit f70bada
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions move-cache.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f70bada

Please sign in to comment.