Skip to content

Commit 9859dee

Browse files
committed
Add Apptainer action
1 parent a7673ba commit 9859dee

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Sm v9 Apptainer
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- dev
9+
pull_request:
10+
branches:
11+
- "**"
12+
13+
jobs:
14+
run_test_pipeline:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
- name: Setup environment
20+
uses: conda-incubator/setup-miniconda@v3
21+
with:
22+
channel-priority: strict
23+
activate-environment: snakemake
24+
auto-activate-base: false
25+
miniforge-version: latest
26+
environment-file: .test/environment_apptainer.yaml
27+
- name: Run test pipeline
28+
shell: bash -el {0}
29+
run: snakemake --snakefile .test/Snakefile --configfile config/config.yaml .test/targets.yaml -c1 --sdm apptainer
30+
- name: Pack logs
31+
if: success() || failure()
32+
shell: bash -el {0}
33+
run: tar czf logs.tar.gz .test/output .snakemake/log
34+
- name: Upload output file
35+
if: success() || failure()
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: output-logs
39+
path: logs.tar.gz

.test/environment_apptainer.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: snakemake
2+
channels:
3+
- conda-forge
4+
- bioconda
5+
- defaults
6+
dependencies:
7+
- python==3.11.6
8+
- snakemake==9.1.6
9+
- apptainer==1.4.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
[![PGO badge](https://img.shields.io/badge/PathoGenOmics-Lab-yellow.svg)](https://pathogenomics.github.io/)
88
[![DOI](https://img.shields.io/badge/Virus_Evolution-10.1093/ve/veae018-387088.svg)](https://doi.org/10.1093/ve/veae018)
9+
[![Latest release](https://img.shields.io/github/v/release/PathoGenOmics-Lab/VIPERA)](https://github.com/PathoGenOmics-Lab/VIPERA/releases)
910

10-
[![Release](https://img.shields.io/github/v/release/PathoGenOmics-Lab/VIPERA)](https://github.com/PathoGenOmics-Lab/VIPERA/releases)
11-
[![Snakemake](https://img.shields.io/badge/Snakemake-≥7.19-brightgreen.svg?style=flat)](https://snakemake.readthedocs.io)
1211
![Install workflow](https://github.com/PathoGenOmics-Lab/VIPERA/actions/workflows/install.yml/badge.svg)
1312
![Test workflow with Snakemake v7](https://github.com/PathoGenOmics-Lab/VIPERA/actions/workflows/test_v7.yml/badge.svg)
1413
![Test workflow with Snakemake v8](https://github.com/PathoGenOmics-Lab/VIPERA/actions/workflows/test_v8.yml/badge.svg)
1514
![Test workflow with Snakemake v9](https://github.com/PathoGenOmics-Lab/VIPERA/actions/workflows/test_v9.yml/badge.svg)
15+
![Test workflow with Snakemake v9 and Apptainer](https://github.com/PathoGenOmics-Lab/VIPERA/actions/workflows/test_apptainer.yml/badge.svg)
1616

1717
A pipeline for SARS-CoV-2 Viral Intra-Patient Evolution Reporting and Analysis.
1818

0 commit comments

Comments
 (0)