diff --git a/.github/workflows/test_ert_with_flow.yml b/.github/workflows/test_ert_with_flow.yml new file mode 100644 index 00000000000..4f1948e343d --- /dev/null +++ b/.github/workflows/test_ert_with_flow.yml @@ -0,0 +1,44 @@ +on: + workflow_call: + inputs: + os: + type: string + python-version: + type: string + +env: + UV_SYSTEM_PYTHON: 1 + +jobs: + test-ert-with-flow: + name: Run ert tests + timeout-minutes: 20 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + id: setup_python + with: + python-version: ${{ inputs.python-version }} + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Install ert + run: | + uv pip install ".[dev]" + + - name: Install flow + run: | + sudo apt install software-properties-common + sudo apt-add-repository ppa:opm/ppa + sudo apt update + sudo apt install mpi-default-bin + sudo apt install libopm-simulators-bin python3-opm-common + + - name: Run integration tests towards OPM flow without flowrun + run: | + set -e + pytest tests/ert/unit_tests/resources/test_run_flow_simulator.py