Skip to content

Enhance multivariate polynomial evaluation with fortran. #79

Enhance multivariate polynomial evaluation with fortran.

Enhance multivariate polynomial evaluation with fortran. #79

Workflow file for this run

# This workflow will install Python dependencies, run tests with a variety of Python versions
name: CI-Ubuntu
on:
push:
branches: [ '*' ]
paths-ignore: # Skip CI in this case
- README.md
pull_request:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
# run at 02:01 on the 10th of each month
- cron: '1 2 10 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# - name: Lint with flake8
# run: |
# pip install flake8
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install the package
run: |
pip install -e .
- name: Run test without petsc
run: |
python -m eastereig
- name: Install petsc and their dependencies (support for parallel matrices)
run: |
sudo apt update --yes
# On 22.04 fails with mpich, but works on 20.04
# sudo apt-get install mpich libmpich-dev --yes
sudo apt install -y -q openmpi-bin libopenmpi-dev
pip install mpi4py
export PETSC_CONFIGURE_OPTIONS='--download-f2cblaslapack=1 --download-scalapack --download-mumps --with-scalar-type=complex'
pip install petsc petsc4py
pip install slepc slepc4py
- name: Run test with petsc
run: |
mpiexec --version
# No mpi call (check that it breaks nothing)
python -m eastereig
# Explicit mpi call
mpiexec -n 2 python eastereig/examples/WGimpedance_petsc.py