Skip to content

Merge pull request #94 from daavid00/dev #5

Merge pull request #94 from daavid00/dev

Merge pull request #94 from daavid00/dev #5

name: macOS
on:
push:
branches:
- main
jobs:
run-pycopm-macos:
permissions:
contents: read
pull-requests: write
timeout-minutes: 90
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install OPM Flow
run: |
brew install cssr-tools/opm/opm-simulators
- name: Install python requirements
run: |
python3 -m venv vpycopm
. vpycopm/bin/activate
echo "$PWD/vpycopm/bin" >> $GITHUB_PATH
pip install --upgrade pip setuptools wheel
pip install -e .
pip install -r dev-requirements.txt
- name: Run the hello world example in pycopm
run: |
pycopm -i examples/decks/HELLO_WORLD.DATA -c 5,5,1 -m all -o output
- name: Check if the example run
run: |
file="${{ github.workspace }}/output/HELLO_WORLD_PYCOPM.EGRID"
if [ -f "$file" ]; then
echo "pycopm succeeded"
else
echo "pycopm failed"
exit 1
fi
- name: Run input.toml which uses ERT
run: |
pycopm -i examples/configurations/drogon/input.toml -o ert
- name: Check if input.toml using ERT run
run: |
file="${{ github.workspace }}/ert/postprocessing/hm_missmatch.png"
if [ -f "$file" ]; then
echo "pycopm using ERT succeeded"
else
echo "pycopm using ERT failed"
exit 1
fi