-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 1.3 KB
/
docker-slim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: slim-setup
on:
workflow_dispatch:
branches:
- main
- devel
pull_request:
branches:
- main
jobs:
docker-slim-install:
# Install environments inside the slim container
runs-on: ubuntu-latest
container:
nbisweden/workshop-reproducible-research:slim
strategy:
matrix:
env: [ snakemake, jupyter, rmarkdown ]
include:
- env: snakemake
cmd: snakemake -j 1 -d tutorials/snakemake/ -s tutorials/snakemake/snakefile_mrsa.smk
- env: jupyter
cmd: jupyter nbconvert --template=nbextensions --to HTML tutorials/jupyter/supplementary_material.ipynb
- env: rmarkdown
cmd: echo 'rmarkdown::render("tutorials/rmarkdown/code/supplementary_material.Rmd", output_file="supplementary.html")' | R --vanilla
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
installer-url: https://repo.continuum.io/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh
activate-environment: ${{ matrix.env }}-env
environment-file: tutorials/${{ matrix.env }}/environment.yml
auto-activate-base: false
- name: Test ${{ matrix.env }}
shell: bash -l {0}
run: |
conda list
${{ matrix.cmd }}