New cases, including gas velocity computations #6
Workflow file for this run
This file contains 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: Run the expreccs executable | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-expreccs-local: | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Flow Simulator | |
run: | | |
sudo apt-get update | |
sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super | |
sudo apt-get install software-properties-common | |
sudo apt-get install -y build-essential gfortran pkg-config cmake | |
sudo apt-get install -y mpi-default-dev | |
sudo apt-get install -y libblas-dev libboost-all-dev libsuitesparse-dev libtrilinos-zoltan-dev | |
sudo apt-get install libdune-common-dev libdune-geometry-dev libdune-istl-dev libdune-grid-dev | |
chmod u+x build_opm-flow_mpi.bash | |
./build_opm-flow_mpi.bash | |
- name: Install test dependecies | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install -r dev-requirements.txt | |
pip install opm | |
- name: Install expreccs | |
run: | | |
pip install . | |
- name: Check code style and linting | |
run: | | |
black --check src/ tests/ setup.py | |
pylint src/ tests/ setup.py | |
mypy --ignore-missing-imports src/ tests/ setup.py | |
- name: Run the tests | |
run: | | |
pytest --cov=expreccs --cov-report term-missing tests/ | |
- name: Build documentation | |
run: | | |
pushd docs | |
make html |