Skip to content

Networks-FEniCSx v0.2.0 - MPI compatible #80

Networks-FEniCSx v0.2.0 - MPI compatible

Networks-FEniCSx v0.2.0 - MPI compatible #80

name: Check formatting
on:
push:
# The CI is executed on every push on every branch
branches:
- master
pull_request:
# The CI is executed on every pull request to the main branch
branches:
- master
# schedule:
# # The CI is executed every day at 8am
# - cron: "0 8 * * *"
jobs:
check-code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install formatting tools
run: python -m pip install ruff mypy
- name: ruff Python interface checks
run: |
ruff check .
ruff format --check .
- name: mypy checks
run: |
mypy src
mypy demos
mypy tests