Skip to content

Commit

Permalink
Fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer committed Aug 3, 2020
1 parent 898f4b4 commit 0d97fc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/flownet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
run: bash ./build_environment.sh $VENV_PATH /usr/bin/flow

- name: 🏗️ Extract Norne Dataset
if: steps.cache-venv.outputs.cache-hit == 'true'
run: tar -zxvf tests/data/norne.tar.gz -C tests/data/

- name: 📦 Install FlowNet
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:
twine upload dist/*
- name: 📚 Update GitHub pages
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.6'
if: github.event_name == 'release' && matrix.python-version == '3.6'
run: |
cp -R ./docs/_build ../_build
git config --local user.email "flownet-github-action"
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,13 @@ configuration file (`.cshrc` or `.bashrc`) to automatically source your
virtual environment.
>
### Install OPM-data (optional)
### OPM-data (optional)

To be able to run examples that are dependent on the Norne field simulation,
you need to download the [OPM-data](https://github.com/OPM/opm-data) repository.
The preferred installation location is in the home directory, e.g. `~/opm-data`:
you need to extract the [OPM-data](https://github.com/OPM/opm-data).

```bash
cd
git clone https://github.com/OPM/opm-data.git
tar -zxvf tests/data/norne.tar.gz -C tests/data/
```

### Running FlowNet
Expand Down
10 changes: 0 additions & 10 deletions build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ fi
INSTALL_ENV=`readlink -f $1`
FLOW_PATH=`readlink -f $2`

####################
# UNPACK TEST DATA #
####################

tar -zxvf tests/data/norne.tar.gz -C tests/data/

############################
# INSTALL apt-get PACKAGES #
############################

if [[ ! -d "$INSTALL_ENV" ]]; then
echo "Folder $INSTALL_ENV does not exist."
echo "Building a virtual environment at $INSTALL_ENV"
Expand Down

0 comments on commit 0d97fc5

Please sign in to comment.