Skip to content

Create incompressible_viscous solver and lid-driven cavity test problem #393

Create incompressible_viscous solver and lid-driven cavity test problem

Create incompressible_viscous solver and lid-driven cavity test problem #393

Workflow file for this run

name: regtest
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
regresion-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
# this path is specific to Ubuntu
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pyro
run: pip install .
- name: Run tests via test.py
run: |
# Numpy 1.24 gets slightly diff answers: https://github.com/numpy/numpy/issues/23289
export NPY_DISABLE_CPU_FEATURES="AVX512_SKX"
./pyro/test.py --nproc 0