Skip to content

Commit

Permalink
Add additional test profiles, needing the github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
tillenglert committed Apr 26, 2024
1 parent 0d30528 commit 643061a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ jobs:

profile_download:
name: nf-test with profiles needing entrez downloads
# Only run on PRs from branches of nf-core/metapep repository or on push if this is the nf-core dev branch (merged PRs)
# (GitHub secrets are not accessible for workflows from forks)
if: ${{ github.event.pull_request.head.repo.full_name == 'nf-core/metapep' || (github.event_name == 'push' && github.repository == 'nf-core/metapep') }}
needs: define_nxf_versions
runs-on: ubuntu-latest
strategy:
Expand Down
4 changes: 1 addition & 3 deletions nf-test.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
config {

config {
// location for all nf-tests
testsDir "tests"
Expand All @@ -15,6 +13,6 @@ config {

// run all test with the defined docker profile from the main nextflow.config
profile ""
}

}

5 changes: 4 additions & 1 deletion tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Impose same minimum Nextflow version as the pipeline for testing
env {
NCBI_EMAIL = "$NCBI_EMAIL"
NCBI_KEY = "$NCBI_KEY"
}
4 changes: 2 additions & 2 deletions tests/pipeline/test_all.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
ncbi_email = "$NCBI_EMAIL"
ncbi_key = "$NCBI_KEY"
ncbi_email = "\$NCBI_EMAIL"
ncbi_key = "\$NCBI_KEY"
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/pipeline/test_mouse.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
ncbi_email = "$NCBI_EMAIL"
ncbi_key = "$NCBI_KEY"
ncbi_email = "\$NCBI_EMAIL"
ncbi_key = "\$NCBI_KEY"
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/pipeline/test_taxa_only.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
ncbi_email = "$NCBI_EMAIL"
ncbi_key = "$NCBI_KEY"
ncbi_email = "\$NCBI_EMAIL"
ncbi_key = "\$NCBI_KEY"
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/pipeline/test_taxa_specific_assembly.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
ncbi_email = "$NCBI_EMAIL"
ncbi_key = "$NCBI_KEY"
ncbi_email = "\$NCBI_EMAIL"
ncbi_key = "\$NCBI_KEY"
}
}

Expand Down

0 comments on commit 643061a

Please sign in to comment.