Skip to content

JOSS paper corrections #116

JOSS paper corrections

JOSS paper corrections #116

name: Ubuntu
on:
pull_request:
jobs:
run-pycopm-ubuntu:
permissions:
contents: read
timeout-minutes: 30
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v5
- name: Install Flow Simulator and ert dependency
run: |
sudo apt-get update
sudo apt-get install software-properties-common mpi-default-bin libhdf5-dev freeglut3-dev
sudo apt-add-repository ppa:opm/ppa
sudo apt-get update
sudo apt-get install libopm-simulators-bin
- 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: Check code style and linting
run: |
black --target-version py314 src/ tests/ --check
pylint src/ tests/
ruff check src/ tests/
mypy --ignore-missing-imports src/ tests/
- name: Run tests
run: |
pytest --cov=pycopm --cov-report term-missing --basetemp=test_outputs tests/ --exitfirst
- name: Run hello world example
run: |
pycopm -i examples/decks/HELLO_WORLD.DATA -c 5,5,1 -m all -o output
- name: Check if hello world example succeded
run: |
file="output/HELLO_WORLD_PYCOPM.EGRID"
if [ -f "$file" ]; then
echo "pycopm succeeded"
else
echo "pycopm failed"
exit 1
fi
- name: Build documentation
run: |
cd docs
make html SPHINXOPTS="-W"