Skip to content

Commit

Permalink
update singularity cache on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Mar 23, 2024
1 parent 93ee225 commit 92e97b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/all-bactopia-tool-tests.yml
Expand Up @@ -26,7 +26,8 @@ jobs:
echo "BACTOPIA_TESTS=/data/storage/bactopia-ci/bactopia-tests/data" >> $GITHUB_ENV
echo "BACTOPIA_WORKSPACE=${GITHUB_WORKSPACE}/${{ github.run_id }}/bactopia" >> $GITHUB_ENV
echo "BACTOPIA_TMP=/data/storage/bactopia-tmp/${{ github.run_id }}" >> $GITHUB_ENV
echo "SINGULARITY_CACHEDIR=/data/storage/bactopia-ci/singularity-cache" >> $GITHUB_ENV
echo "NXF_SINGULARITY_CACHEDIR=/data/storage/bactopia-ci/envs/singularity" >> $GITHUB_ENV
echo "SINGULARITY_CACHEDIR=/data/storage/bactopia-ci/envs/singularity" >> $GITHUB_ENV
mkdir "/data/storage/bactopia-tmp/${{ github.run_id }}"
chmod -R 777 "/data/storage/bactopia-tmp/${{ github.run_id }}"
Expand All @@ -36,7 +37,7 @@ jobs:
conda activate bactopia-ci
cd ${{ env.BACTOPIA_WORKSPACE }}
ls subworkflows/local/ | grep -v -E "teton" | xargs -I {} -P 20 \
bash -c 'BACTOPIA_ARGS="-profile singularity --singularity_cache ${{ env.BACTOPIA_SINGULARITY }} --is_ci --test_data_dir ${{ env.BACTOPIA_TESTS }}" TMPDIR=${{ env.BACTOPIA_TMP }} \
bash -c 'BACTOPIA_ARGS="-profile singularity --is_ci --test_data_dir ${{ env.BACTOPIA_TESTS }}" TMPDIR=${{ env.BACTOPIA_TMP }} \
pytest --wt 5 --symlink --kwdof -o "testpaths=tests subworkflows/local/" --git-aware --tag {}'
- name: Docker Profile
Expand Down

0 comments on commit 92e97b9

Please sign in to comment.