Skip to content

Commit db1a357

Browse files
committed
Use environment variables for test data base paths (#13474)
## Feat Add optional env variables for test data base paths so devs can set it to a local path without running the risk of committing changes that shouldn't be there. ## Reason I did exactly that and want to add the env variable to my `.bashrc`. No more timeouts from github and faster tests!
1 parent 2d86750 commit db1a357

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/config/nf-test.config‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
params {
22
publish_dir_mode = "copy"
33
singularity_pull_docker_container = false
4-
test_data_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules'
5-
modules_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/'
4+
test_data_base = System.getenv('NXF_TEST_DATA_BASE') ?: 'https://raw.githubusercontent.com/nf-core/test-datasets/modules'
5+
modules_testdata_base_path = System.getenv('NXF_MODULES_TESTDATA_BASE') ?: 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/'
66
}
77

88
// Resolves issue with accessing s3 from self-hosted runners

0 commit comments

Comments
 (0)