Skip to content

Commit

Permalink
Merge pull request #24 from rki-mf1/dev
Browse files Browse the repository at this point in the history
Dev including CI
  • Loading branch information
Krannich479 authored Oct 9, 2023
2 parents 97b52f1 + e0d3d16 commit 322aa28
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches: [ "main", "dev", "ci" ]
pull_request:
branches: [ "main" ]

# designed as in: https://github.com/marketplace/actions/setup-miniconda
jobs:
CI:
name: CI tests using linux
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: "3.11.3"
activate-environment: snakemake7
environment-file: env/conda_snakemake7.yaml
channels: conda-forge,bioconda,defaults
channel-priority: strict
auto-activate-base: false

- name: Test conda installation
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Test snakemake installation
run: |
snakemake --version
- name : Download reference
run: |
wget https://www.ebi.ac.uk/ena/browser/api/fasta/MN908947.3
sed 's/>ENA|MN908947|MN908947.3 Severe acute respiratory syndrome coronavirus 2 isolate Wuhan-Hu-1, complete genome./>MN908947.3/g' MN908947.3 > MN908947.3.fasta
- name: Test CIEVaD principal functionality
run: |
python cievad.py --help
- name: Test haplotype simulation
run: |
python cievad.py hap -n 3 -r MN908947.3.fasta
- name: Test NGS simulation
run: |
python cievad.py ngs -n 3 -f 1000
- name: Test Nanopore simulation
run: |
python cievad.py nano -n 3 -r 100

0 comments on commit 322aa28

Please sign in to comment.