-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge branch 'main' into release
- Loading branch information
Showing
53 changed files
with
4,248 additions
and
1,283 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build JOSS paper | ||
on: [push] | ||
|
||
jobs: | ||
paper: | ||
runs-on: ubuntu-latest | ||
name: Paper Draft | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build draft PDF | ||
uses: openjournals/openjournals-draft-action@master | ||
with: | ||
journal: joss | ||
paper-path: ./joss-paper/paper.md | ||
|
||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: paper | ||
path: ./joss-paper/paper.pdf |
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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Test package with openmpi | ||
|
||
on: | ||
push: | ||
# The CI is executed on every push on every branch | ||
branches: | ||
- "**" | ||
pull_request: | ||
# The CI is executed on every pull request to the main branch | ||
branches: | ||
- main | ||
|
||
workflow_call: | ||
workflow_dispatch: | ||
schedule: | ||
# The CI is executed every day at 8am | ||
- cron: "0 8 * * *" | ||
|
||
jobs: | ||
create-datasets: | ||
uses: ./.github/workflows/create_legacy_data.yml | ||
with: | ||
artifact_name: "legacy_ompi" | ||
|
||
create-legacy-datasets: | ||
uses: ./.github/workflows/create_legacy_checkpoint.yml | ||
with: | ||
artifact_name: "legacy_checkpoint_ompi" | ||
|
||
test-code: | ||
runs-on: "ubuntu-22.04" | ||
needs: [create-datasets, create-legacy-datasets] | ||
container: ghcr.io/fenics/test-env:current-openmpi | ||
env: | ||
DEB_PYTHON_INSTALL_LAYOUT: deb_system | ||
PETSC_ARCH: "linux-gnu-real64-32" | ||
OMPI_ALLOW_RUN_AS_ROOT: 1 | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | ||
PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe | ||
|
||
strategy: | ||
matrix: | ||
adios2: ["default", "v2.10.0"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Update pip | ||
run: python3 -m pip install --upgrade pip setuptools | ||
|
||
- name: Install DOLFINx | ||
uses: jorgensd/actions/[email protected] | ||
with: | ||
adios2: ${{ matrix.adios2 }} | ||
petsc_arch: ${{ env.PETSC_ARCH }} | ||
dolfinx: v0.8.0 | ||
basix: v0.8.0 | ||
ufl: 2024.1.0.post0 | ||
ffcx: v0.8.0 | ||
|
||
- name: Download legacy data | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: legacy_ompi | ||
path: ./legacy | ||
|
||
- name: Download legacy data | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: legacy_checkpoint_ompi | ||
path: ./legacy_checkpoint | ||
|
||
- name: Install package | ||
run: python3 -m pip install .[test] | ||
|
||
- name: Run tests | ||
run: | | ||
coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs ./tests/ | ||
- name: Run tests in parallel | ||
run: | | ||
mpirun -n 4 coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs ./tests/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: 'v0.2.2' | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.8.0 | ||
hooks: | ||
- id: mypy |
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
Oops, something went wrong.