Skip to content

Commit

Permalink
Add test file for ert with flow without flowrun
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Dec 16, 2024
1 parent 841e22a commit c5702cf
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test_ert_with_flow.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c5702cf

Please sign in to comment.