Skip to content

Commit

Permalink
fix: change command in scripts to singularity (if apptainer is instal…
Browse files Browse the repository at this point in the history
…led, it sets up an alias)
  • Loading branch information
fabioseel committed Nov 22, 2024
1 parent 302f7c7 commit e9d62f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ci/build_scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# (run from top level directory!)
#===============================================================================

apptainer exec "$1" python -m doom_creator.compile_scenario gathering apples
singularity exec "$1" python -m doom_creator.compile_scenario gathering apples
4 changes: 2 additions & 2 deletions tests/ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ fi

if [ -n "$changed_files" ]; then
# Format
apptainer exec "$CONTAINER" ruff format $changed_files $check
singularity exec "$CONTAINER" ruff format $changed_files $check
# Run ruff on changed files with any remaining arguments
apptainer exec "$CONTAINER" ruff check $changed_files "$@"
singularity exec "$CONTAINER" ruff check $changed_files "$@"
else
echo "No .py files changed"
fi
2 changes: 1 addition & 1 deletion tests/ci/scan_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

for file in config/user/experiment/*.yaml; do
experiment=$(basename "$file" .yaml)
apptainer exec "$1" \
singularity exec "$1" \
python main.py +experiment="$experiment" command=scan system.device=cpu
done

0 comments on commit e9d62f7

Please sign in to comment.