forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test file for ert with flow without flowrun
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |