Skip to content

Commit

Permalink
Fix runflow test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Jan 16, 2025
1 parent 97a3109 commit 5e1c38c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test_ert_with_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: string

env:
UV_SYSTEM_PYTHON: 1
UV_FROZEN: true

jobs:
test-ert-with-flow:
Expand All @@ -25,10 +25,13 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: ${{ inputs.python-version }}

- name: Install ert and everest
run: |
uv pip install ".[everest,dev]"
uv sync --extra everest --group dev
uv pip install git+https://github.com/equinor/everest-models
- name: Install flow
Expand All @@ -46,18 +49,18 @@ jobs:
- name: Run integration tests towards OPM flow without flowrun
run: |
set -e
pytest tests/ert/unit_tests/resources/test_run_flow_simulator.py
uv run pytest tests/ert/unit_tests/resources/test_run_flow_simulator.py
- name: Run Ert on an example configuration with flow
run: |
pushd test-data/ert/flow_example
perl -p -i -e 's/NUM_REALIZATIONS\s*12/NUM_REALIZATIONS 2/g' flow.ert
ert ensemble_experiment flow.ert
uv run ert ensemble_experiment flow.ert
popd
- name: Run Everest on an example configuration with flow
run: |
pushd test-data/everest/egg/everest/model
everest lint config_flow.yml
everest run config_flow.yml
uv run everest lint config_flow.yml
uv run everest run config_flow.yml
popd

0 comments on commit 5e1c38c

Please sign in to comment.