Skip to content

Using toml, updating the docs, and CI with OpenFOAM 12 #5

Using toml, updating the docs, and CI with OpenFOAM 12

Using toml, updating the docs, and CI with OpenFOAM 12 #5

Workflow file for this run

name: Run pymm
on:
push:
branches:
- main
pull_request:
jobs:
run-pymm-local:
timeout-minutes: 30
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 gmsh
run: |
sudo apt-get update
sudo apt-get -y install gmsh
- name: Install OpenFOAM-v12
run: |
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt update
sudo apt -y install openfoam12
. /opt/openfoam12/etc/bashrc
- name: Install test dependecies
run: |
pip install --upgrade pip setuptools wheel
pip install -r dev-requirements.txt
- name: Install pymm
run: |
pip install .
- name: Check code style and linting
run: |
black --check src/ tests/
pylint src/ tests/
mypy --ignore-missing-imports src/ tests/
- name: Run the tests
run: |
pytest --cov=pymm --cov-report term-missing tests/