Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
DongdongdongW committed Jun 22, 2022
1 parent 815c9c3 commit a815e8b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,17 @@ jobs:
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
#- name: Run pipeline with test data
# 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

- name: Run pipeline with cBioPortal data
- name: Run pipeline with test data
# 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_cbioportal,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
#- name: Run pipeline with COSMIC Cell Lines data
#env:
# COSMIC_USERNAME: ${{ secrets.COSMIC_USERNAME }}
# COSMIC_PASSWORD: ${{ secrets.COSMIC_PASSWORD }}
- name: Run pipeline with COSMIC Cell Lines and cBioPortal data
env:
COSMIC_USERNAME: ${{ secrets.COSMIC_USERNAME }}
COSMIC_PASSWORD: ${{ secrets.COSMIC_PASSWORD }}
# 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_cosmic,docker --outdir ./results --cosmic_user_name $COSMIC_USERNAME --cosmic_password $COSMIC_PASSWORD
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test_cosmic_cbio,docker --outdir ./results --cosmic_user_name $COSMIC_USERNAME --cosmic_password $COSMIC_PASSWORD
4 changes: 2 additions & 2 deletions conf/test_cosmic.config → conf/test_cosmic_cbio.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

params {
config_profile_name = 'Full test profile'
config_profile_description = 'Full test COSMIC Cell lines generation'
config_profile_description = 'Full test COSMIC Cell lines and cBioPortal generation'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
Expand All @@ -26,6 +26,6 @@ params {
gnomad = false
cosmic = false
cosmic_celllines = true
cbioportal = false
cbioportal = true
decoy = true
}
6 changes: 3 additions & 3 deletions conf/test_full.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ params {
config_profile_description = 'Full test COSMIC generation'

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

// Input data for full size test
ensembl_name = 'homo_sapiens'
Expand Down
3 changes: 1 addition & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ profiles {
}
test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' }
test_cosmic { includeConfig 'conf/test_cosmic.config' }
test_cbioportal { includeConfig 'conf/test_cbioportal.config' }
test_cosmic_cbio { includeConfig 'conf/test_cosmic_cbio.config' }
}

// Export these variables to prevent local Python/R libraries from conflicting with those in the container
Expand Down

0 comments on commit a815e8b

Please sign in to comment.