3434 REPO_LOWERCASE : ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
3535 REPOTITLE_LOWERCASE : ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
3636 REPO_BRANCH : ${{ steps.get_repo_properties.outputs.REPO_BRANCH }}
37+ steps :
38+ - name : Get the repository name and current branch
39+ id : get_repo_properties
40+ run : |
41+ echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
42+ echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
43+ echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
44+
45+ download :
46+ runs-on : ubuntu-latest
47+ needs : configure
3748 steps :
3849 - name : Install Nextflow
3950 uses : nf-core/setup-nextflow@v2
@@ -56,21 +67,10 @@ jobs:
5667 python -m pip install --upgrade pip
5768 pip install git+https://github.com/nf-core/tools.git@dev
5869
59- - name : Get the repository name and current branch set as environment variable
60- id : get_repo_properties
61- run : |
62- echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
63- echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
64- echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
65-
6670 - name : Make a cache directory for the container images
6771 run : |
6872 mkdir -p ./singularity_container_images
6973
70- download :
71- runs-on : ubuntu-latest
72- needs : configure
73- steps :
7474 - name : Download the pipeline
7575 env :
7676 NXF_SINGULARITY_CACHEDIR : ./singularity_container_images
8787 - name : Inspect download
8888 run : tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
8989
90+ - name : Inspect container images
91+ run : tree ./singularity_container_images | tee ./container_initial
92+
9093 - name : Count the downloaded number of container images
9194 id : count_initial
9295 run : |
@@ -123,7 +126,8 @@ jobs:
123126 final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
124127 difference=$((final_count - initial_count))
125128 echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
126- tree ./singularity_container_images
129+ tree ./singularity_container_images > ./container_afterwards
130+ diff ./container_initial ./container_afterwards
127131 exit 1
128132 else
129133 echo "The pipeline can be downloaded successfully!"
0 commit comments