FEniCSx-FUS CI #1776
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: FEniCSx-FUS CI | |
on: | |
push: | |
branches: | |
- "**" | |
schedule: | |
# '*' is a special character in YAML, so string must be quoted | |
- cron: "0 1 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: dolfinx/dolfinx:nightly | |
env: | |
CC: gcc | |
CXX: g++ | |
PETSC_ARCH: linux-gnu-real64-32 | |
OMPI_ALLOW_RUN_AS_ROOT: 1 | |
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
OMPI_MCA_rmaps_base_oversubscribe: 1 | |
OMPI_MCA_plm: isolated | |
OMPI_MCA_btl_vader_single_copy_mechanism: none | |
OMPI_MCA_mpi_yield_when_idle: 1 | |
OMPI_MCA_hwloc_base_binding_policy: none | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install linting tools | |
run: python3 -m pip -v install --break-system-packages ruff | |
- name: Install Python test dependencies | |
run: python3 -m pip -v install --break-system-packages pytest | |
- name: Install Python package dependencies | |
run: python3 -m pip -v install --break-system-packages scipy | |
- name: Install fenicsxfus package | |
run: python3 -m pip -v install --break-system-packages python/ --no-cache-dir | |
- name: ruff checks | |
run: | | |
ruff check python/tests/ | |
ruff format --check python/src/fenicsxfus/ | |
- name: Run tests | |
run: | | |
cd python/ | |
pytest tests/ |