Skip to content

Commit

Permalink
Condition-based display of Conda environment diffs:
Browse files Browse the repository at this point in the history
Report full diff of Conda environment.yml files before and after
installation of MALA only when they differ.
  • Loading branch information
DanielKotik committed Jul 4, 2024
1 parent bf14f35 commit 4ba5dbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ jobs:
# if comparison fails, `install/mala_cpu_[base]_environment.yml` needs to be aligned with
# `requirements.txt` and/or extra dependencies are missing in the Docker Conda environment
diff --side-by-side --color=always env_before.yml env_after.yml
if diff --brief env_before.yml env_after.yml
then
echo "Files env_before.yml and env_after.yml do not differ."
else
diff --side-by-side --color-always env_before.yml env_after.yml
fi
- name: Download test data repository from RODARE
shell: 'bash -c "docker exec -i mala-cpu python < {0}"'
Expand Down

0 comments on commit 4ba5dbe

Please sign in to comment.