Closed PabRod closed 2 years ago
Then we're back to the problem that Centos has antient packages. Maybe the command is failing because it is executed using sh
instead of bash
? (see https://github.community/t/declaring-a-default-shell-and-environment-variables-across-all-steps-in-a-job-github-actions/16228/2 on howto change that)
I've tried that. But still fails.
Finally we solved it the hacky way:
- name: Run tests
id: run-tests
run: |
set +o pipefail
source /usr/lib/openfoam/openfoam2106/etc/bashrc
poetry run pytest
shell: bash
Problem
The step of enabling OpenFOAM is failing. The file
/usr/lib/openfoam/openfoam2106/etc/bashrc
is present and looks good. But when trying to execute it, we get an obscure message:I've tried
chmod +x
, but it is not allowed.Possible solution
Why not go back to the containerized version of OpenFOAM?