ci pipeline in development #8
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: MDFEniCSx CI| | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: dolfinx/dolfinx:v0.7.2 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8"] | |
paths: [" ", "mdfenicsx", "mdfenicsx/mesh_data", "mdfenicsx/demo/*/*"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install flake8 | |
uses: py-actions/flake8@v2 | |
with: | |
max-line-length: "80" | |
path: ${{ matrix.paths }} | |
- name: Test dolfinx | |
run: | | |
python3 --version | |
python3 -c "import ufl; print('ufl import success')" | |
mpiexec -n 3 python3 -c "import ufl; print('ufl import success')" | |
python3 -c "from mpi4py import MPI; print('MPI import success')" | |
mpiexec -n 3 python3 -c "from mpi4py import MPI; print('MPI import success')" | |
python3 -c "import dolfinx; print('dolfinx import success')" | |
mpiexec -n 3 python3 -c "import dolfinx; print(f'dolfinx version {dolfinx.__version__} import success')" | |
python3 -c "import gmsh; print(f'gmsh version {gmsh.__version__} import success')" | |
mpiexec -n 3 python3 -c "import gmsh; print(f'gmsh version {gmsh.__version__} import success')" | |
#- name: Flake8 lint | |
#run: | | |
#flake8 ./mdfenicsx/mesh_data/mesh.py | |
#flake8 ./mdfenicsx/mesh_motion_classes.py | |
#flake8 ./demo/0_fundamental_deformation/0_fundamentals.py | |
#flake8 ./demo/0_fundamental_deformation/mesh_data/mesh.py | |
#flake8 ./demo/*/*.py | |
#flake8 ./demo/*/mesh_data/mesh.py |