File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed
Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -11,28 +11,35 @@ jobs:
1111 run_fmu_dummy :
1212 name : Run FMU dummy
1313 runs-on : ubuntu-latest
14- container : precice/precice:nightly
14+ container :
15+ image : precice/precice:nightly
16+ options : --user root
1517 steps :
16-
1718 - name : Checkout Repository
18- uses : actions/checkout@v2
19-
19+ uses : actions/checkout@v4
2020 - name : Install Dependencies
2121 run : |
2222 apt-get -qq update
23- apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
24- python -m pip install --upgrade pip
25- pip install fmpy
26-
27- - name : Install fmiprecice
23+ apt-get -qq install python3-pip python3.12-venv
24+ rm -rf /var/lib/apt/lists/*
25+ - name : Create venv
2826 run : |
29- pip3 install --user .
30-
27+ python3 -m venv .venv
28+ - name : Activate venv
29+ # see https://stackoverflow.com/a/74669486
30+ run : |
31+ . .venv/bin/activate
32+ echo PATH=$PATH >> $GITHUB_ENV
33+
34+ python -m pip install --upgrade pip
35+ pip install fmpy
36+ - name : Run pip install
37+ run : pip3 install .
3138 - name : Run coupling of two Dummy FMUs
3239 timeout-minutes : 3
3340 run : |
3441 cd tests/
35- cd SolverOne/ && python3 ../../ fmiprecice/runner.py ./fmi-settings.json ./precice-settings.json & cd SolverTwo/ && python3 ../../ fmiprecice/runner.py ./fmi-settings.json ./precice-settings.json
42+ cd SolverOne/ && python3 fmiprecice ./fmi-settings.json ./precice-settings.json & cd SolverTwo/ && python3 fmiprecice ./fmi-settings.json ./precice-settings.json
3643
3744 - name : Check the result
3845 timeout-minutes : 3
You can’t perform that action at this time.
0 commit comments