-
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.
* Revert 0.8 API changes for release * Test against 0.7.3 image * Update citation file and pyproject.toml * Update workflows * Correct version in readme * Test redhat installation (#111) * Test package on redhat * Remove default build from matrix as redhat image does not have adios2 installed * Re-introduce type hints from typing * Add back adios2 to the Python dependencies * Try setting working directory in test * Remove petsc arch * try fixing petsc dir again * Install adios2 from source as it requires MPI build. Set pythonpath in parent workflow * Add notes about adios2 installation * Use newest install-dolfinx action * Remove adios2 from deps as the pypi version is incompatible with package (no MPI support)
- Loading branch information
Showing
15 changed files
with
178 additions
and
54 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
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,83 @@ | ||
name: Test package with redhat | ||
|
||
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: docker.io/fenicsproject/test-env:current-redhat | ||
env: | ||
DEB_PYTHON_INSTALL_LAYOUT: deb_system | ||
PETSC_ARCH: "" | ||
PETSC_DIR: "/usr/local/" | ||
PYTHONPATH: "/usr/local/lib/:${PYTHONPATH}" | ||
working-directory: ./src | ||
|
||
strategy: | ||
matrix: | ||
adios2: ["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 }} | ||
petsc_dir: ${{ env.PETSC_DIR }} | ||
dolfinx: v0.8.0 | ||
basix: v0.8.0 | ||
ufl: 2024.1.0.post0 | ||
ffcx: v0.8.0 | ||
working-directory: ${{ env.working-directory}} | ||
|
||
- 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: "Dokken" | ||
given-names: "Jørgen S." | ||
orcid: "0000-0001-6489-8858" | ||
- family-names: "Dokken" | ||
given-names: "Jørgen S." | ||
orcid: "0000-0001-6489-8858" | ||
title: "ADIOS2Wrappers" | ||
version: "0.7.2" | ||
date-released: "2023-02-07" | ||
version: "0.8.1" | ||
date-released: "2023-04-25" |
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 |
---|---|---|
|
@@ -3,12 +3,12 @@ requires = ["setuptools>=61.0.0", "wheel"] | |
|
||
[project] | ||
name = "adios4dolfinx" | ||
version = "0.8.0.dev0" | ||
version = "0.8.1" | ||
description = "Checkpointing functionality for DOLFINx meshes/functions with ADIOS2" | ||
authors = [{ name = "Jørgen S. Dokken", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
readme = "README.md" | ||
dependencies = ["fenics-dolfinx>=0.8.0.dev0"] | ||
dependencies = ["fenics-dolfinx>=0.8.0"] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "coverage", "ipyparallel"] | ||
|
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.