Skip to content

Commit

Permalink
CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ksenia Krasheninnikova committed Oct 11, 2023
1 parent 53de040 commit e0b1d62
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:
with:
version: "${{ matrix.NXF_VER }}"

- name: Download test data
run: |
curl https://darwin.cog.sanger.ac.uk/genomeassembly_test_data.tar.gz | tar xzf -
- name: Run pipeline with test data
# TODO nf-core: You can customise CI pipeline run tests as required
# For example: adding multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test_github,docker --outdir ./results
17 changes: 17 additions & 0 deletions assets/test_github.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
dataset:
id: baUndUnlc1
illumina_10X:
reads: /home/runner/work/genomeassembly/genomessembly/Undibacterium_unclassified/genomic_data/baUndUnlc1/10x/
pacbio:
reads:
- reads: /home/runner/work/genomeassembly/genomessembly/Undibacterium_unclassified/genomic_data/baUndUnlc1/pacbio/fasta/HiFi.reads.fasta
HiC:
reads:
- reads: /home/runner/work/genomeassembly/genomessembly/Undibacterium_unclassified/genomic_data/baUndUnlc1/hic-arima2/41741_2#7.sub.cram
hic_motif: GATC,GANTC,CTNAG,TTAA
busco:
lineage: bacteria_odb10
mito:
species: Caradrina clavipalpis
min_length: 15000
code: 5
33 changes: 33 additions & 0 deletions conf/test_github.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file for running minimal tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Defines input files and everything required to run a fast and simple pipeline test.
Use as follows:
nextflow run sanger-tol/genomeassembly -profile test,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/

params {
config_profile_name = 'Github test profile'
config_profile_description = 'Minimal test dataset to check pipeline function'

max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'
// Limit resources so that this can run on GitHub Actions

// Input data
input = "${projectDir}/assets/test_github.yaml"
bed_chunks_polishing = 2
polishing_on = true
hifiasm_hic_on = true
}

// Set up of the scffolding eipeline
withName: 'YAHS' {
// Skip the initial assembly error correction step
ext.args = '-r 1000,2000,5000'
}

0 comments on commit e0b1d62

Please sign in to comment.