Skip to content

Commit

Permalink
Merge pull request #214 from AlexVCaron/test/data
Browse files Browse the repository at this point in the history
[IMPROV] Add error message to load_test_data when package name is wrong
  • Loading branch information
arnaudbore authored Sep 12, 2024
2 parents ae6935a + d158932 commit 6376c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact/merge@v4
continue-on-error: true
with:
name: nf-test-reports
pattern: reports-*
delete-merged: true
retention-days: 10
compression-level: 9


confirm-pass:
name: status
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions subworkflows/nf-scil/load_test_data/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def fetch_archive ( name, destination, remote, database, data_identifiers ) {

// Fetch file from remote if not present in cache
def data_id = data_identifiers[name]
if ( !data_id ) {
error "Invalid test data identifier supplied: $name"
}

def cache_entry = file("$cache_location/$data_id")
if ( !cache_entry.exists() ) {
def remote_entry = "${data_id[0..1]}/${data_id[2..-1]}"
Expand Down

0 comments on commit 6376c35

Please sign in to comment.