Skip to content

Fix indentation in Snakefile #310

Fix indentation in Snakefile

Fix indentation in Snakefile #310

on:
push:
pull_request:
branches:
- master
schedule:
- cron: '0 9 * * 5'
name: snakemake-run
jobs:
snakemake-run:
name: run snakemake
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
include:
- os: macos-latest
rversion: '4.2'
- os: ubuntu-latest
rversion: '4.2'
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install R (macOS)
uses: r-lib/actions/setup-r@v2
if: runner.os == 'macOS'
with:
r-version: ${{ matrix.rversion }}
- name: Check where R is installed
if: runner.os == 'macOS'
run: |
which R
Rscript -e 'print(.libPaths())'
- name: Set up workflow R for macOS
if: runner.os == 'macOS'
run: |
sed -i .bak 's/useCondaR: True/useCondaR: False/' config.yaml
mkdir -p $HOME/Rlib
echo "R_LIBS_USER=${HOME}/Rlib" > .Renviron
cat .Renviron
Rscript -e "install.packages('BiocManager'); BiocManager::install('GenomeInfoDbData')"
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
sudo apt-get --yes --force-yes update -qq && \
sudo apt-get -y install libcairo2-dev libv8-dev \
libgdal-dev libgeos-dev libgeos++-dev libproj-dev libudunits2-dev \
libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libglpk-dev \
libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libgit2-dev
- name: Prepare for running workflow
env:
BIOCONDUCTOR_USE_CONTAINER_REPOSITORY: true
run: |
mkdir -p $HOME/.R
echo -e 'MAKEFLAGS = -j8' > $HOME/.R/Makevars
echo 'options(Ncpus = 8)' > $HOME/.Rprofile
echo 'Sys.setenv(BIOCONDUCTOR_USE_CONTAINER_REPOSITORY=TRUE)' >> $HOME/.Rprofile
- name: Run Snakemake
env:
BIOCONDUCTOR_USE_CONTAINER_REPOSITORY: true
uses: snakemake/snakemake-github-action@v1
with:
directory: '.'
snakefile: 'Snakefile'
args: '--cores 4 --use-conda'
- name: Upload artifact
uses: actions/upload-artifact@v2
if: failure()
with:
name: all_rout
path: example_data/output/Rout/*.Rout