build_singularity #87
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
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 13 * *" | |
name: build_singularity | |
jobs: | |
build_singularity: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
singularity_version: | |
- '3.7.4' | |
container: | |
image: quay.io/singularity/singularity:v${{ matrix.singularity_version }} | |
options: --privileged | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Show singularity version | |
run: singularity version | |
- name: Build container | |
run: ./scripts/build_singularity_container.sh | |
- name: Test container, must detect MHCnuggets | |
run: singularity test mhcnuggetsr.sif | |
- name: Show help of container | |
run: singularity run-help mhcnuggetsr.sif | |
- name: Show script | |
run: cat scripts/demo_mhcnuggetsr.R | |
- name: Run container | |
run: cat scripts/demo_mhcnuggetsr.R | ./mhcnuggetsr.sif | |