Skip to content

Commit

Permalink
🔧 Add '--cleanenv' to default Singularity flags
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Apr 13, 2022
1 parent 0b166d5 commit c07296c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_cpac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:

strategy:
matrix:
platform: [docker]
platform: [docker, singularity]
tag: [latest, nightly]
go: [1.14]
python: [3.7, 3.8, 3.9, "3.10"]
singularity: [3.6.4]
singularity: [3.6.4, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion src/cpac/backends/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def __init__(self, **kwargs):
self.pull(**kwargs, force=False)
self.options = list(chain.from_iterable(kwargs[
"container_options"
])) if bool(kwargs.get("container_options")) else []
])) if bool(kwargs.get("container_options")) else [
'--cleanenv']
if isinstance(self.pipeline_config, str):
self.config = Client.execute(
image=self.image,
Expand Down

0 comments on commit c07296c

Please sign in to comment.