Updating Dockerfile and CI #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ubuntu | |
| on: | |
| pull_request: | |
| jobs: | |
| run-pyopmspe11-ubuntu: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.12 | |
| - name: Install Flow Simulator | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install software-properties-common | |
| sudo apt-add-repository ppa:opm/ppa | |
| sudo apt-get update | |
| sudo apt-get install mpi-default-bin | |
| sudo apt-get install libopm-simulators-bin | |
| sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super | |
| - name: Install dependecies | |
| run: | | |
| pip install --upgrade pip setuptools wheel | |
| pip install -r dev-requirements.txt | |
| - name: Install pyopmspe11 | |
| run: | | |
| pip install . | |
| - name: Check code style and linting | |
| run: | | |
| black --target-version py312 src/ tests/ convergence/ --check | |
| pylint src/ tests/ convergence/ | |
| ruff check src/ tests/ convergence/ | |
| mypy --ignore-missing-imports src/ tests/ convergence/ | |
| - name: Run the tests | |
| run: | | |
| pytest --cov=pyopmspe11 --cov-report term-missing --basetemp=test_outputs tests/ --exitfirst | |
| - name: Build documentation | |
| run: | | |
| pushd docs | |
| make html |