Skip to content

Commit

Permalink
Use FlowNet testdata repo
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer committed Aug 21, 2020
1 parent df8b1d8 commit a723f74
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 789 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/flownet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
strategy:
matrix:
python-version: ['3.6', '3.7']
flownet-model: ['norne']

env:
VENV_PATH: ${{ github.workspace }}/flownet_venv
PYTHONPATH: ${{ github.workspace }}/flownet_venv/lib/python${{ matrix.python-version }}/dist-packages
Expand All @@ -46,8 +48,20 @@ jobs:
if: steps.cache-venv.outputs.cache-hit != 'true'
run: bash ./build_environment.sh $VENV_PATH /usr/bin/flow

- name: 🏗️ Extract Norne Dataset
run: tar -zxvf tests/data/norne.tar.gz -C tests/data/
- name: 🍿 Download FlowNet test data
env:
INPUT_MODEL_FOLDER: ./flownet-testdata/${{ matrix.flownet-model }}/input_model
# If you want the CI to (temporarily) run against your fork of the testdada,
# change the value her from "equinor" to your username.
TESTDATA_REPO_OWNER: anders-kiaer
# If you want the CI to (temporarily) run against another branch than master,
# change the value her from "master" to the relevant branch name.
TESTDATA_REPO_BRANCH: adjust_for_ci
run: |
git clone --depth 1 --branch $TESTDATA_REPO_BRANCH https://github.com/$TESTDATA_REPO_OWNER/flownet-testdata.git
if [ -f "$INPUT_MODEL_FOLDER/${{ matrix.flownet-model }}.tar.gz" ]; then
tar -zxvf $INPUT_MODEL_FOLDER/${{ matrix.flownet-model }}.tar.gz -C $INPUT_MODEL_FOLDER
fi
- name: 📦 Install FlowNet
run: |
Expand Down Expand Up @@ -75,15 +89,13 @@ jobs:
run: |
source $VENV_PATH/bin/activate
webviz certificate --force
pytest --cov=flownet --cov-fail-under=50 ./tests
pytest --cov=flownet --cov-fail-under=29 ./tests
- name: 🚀 Run full FlowNet example
run: |
source $VENV_PATH/bin/activate
pushd examples
flownet ahm ../tests/configs/norne_parameters.yml ./some_ahm_run
flownet pred ../tests/configs/norne_pred.yml ./some_pred_run ./some_ahm_run
popd
flownet ahm ./flownet-testdata/${{ matrix.flownet-model }}/ci_config/assisted_history_matching.yml ./some_ahm_run
flownet pred ./flownet-testdata/${{ matrix.flownet-model }}/ci_config/prediction.yml ./some_pred_run ./some_ahm_run
- name: 📚 Build documentation
run: |
Expand Down
Empty file removed examples/brugge_parameters.yml
Empty file.
122 changes: 0 additions & 122 deletions examples/norne_parameters.yml

This file was deleted.

15 changes: 0 additions & 15 deletions examples/norne_pred.yml

This file was deleted.

Loading

0 comments on commit a723f74

Please sign in to comment.