Weekly Test Singularity Build #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Weekly Test Singularity Build | |
on: | |
schedule: | |
# every Sunday at 0:00 | |
- cron: "0 0 * * 0" | |
jobs: | |
container: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code for the container build | |
uses: actions/checkout@v3 | |
- name: Setup Singularity | |
uses: singularityhub/install-singularity@main | |
- name: Extract repository location | |
shell: bash | |
run: | | |
echo "location=$(echo " - git+https://www.github.com/${GITHUB_REPOSITORY}@${GITHUB_REF#refs/heads/}")" >> $GITHUB_OUTPUT | |
id: extract_location | |
- name: Build Container | |
run: | | |
cd container | |
echo '${{ steps.extract_location.outputs.location }}' >> environment_test.yml | |
sudo -E singularity build --notest sc-dandelion.sif sc-dandelion_test.def | |
- name: Test Container | |
run: | | |
cd container | |
sudo singularity test --writable-tmpfs sc-dandelion.sif | |
singularity run -B $PWD sc-dandelion.sif dandelion-preprocess --help |