Skip to content

Merge pull request #97 from daavid00/dev #8

Merge pull request #97 from daavid00/dev

Merge pull request #97 from daavid00/dev #8

name: macOS
on:
push:
branches:
- main
jobs:
run-pycopm-macos:
permissions:
contents: read
timeout-minutes: 90
runs-on: macos-26
steps:
- uses: actions/checkout@v5
- name: Install OPM Flow
run: |
brew tap cssr-tools/opm
brew trust cssr-tools/opm
brew install cssr-tools/opm/opm-simulators -y
- name: Install pycopm and python requirements
run: |
python3 -m venv vpycopm
. vpycopm/bin/activate
echo "$PWD/vpycopm/bin" >> $GITHUB_PATH
pip install --upgrade pip setuptools wheel
pip install .
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