Skip to content

Commit c5ff3c7

Browse files
authored
Update regression test workflow
1 parent 93d6c21 commit c5ff3c7

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/run-regression-test.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)