diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 1ea73a8..52276c2 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -18,17 +18,17 @@ jobs: env: DEB_PYTHON_INSTALL_LAYOUT: deb_system - runs-on: ubuntu-22.04 - container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0 + runs-on: ubuntu-latest + container: ghcr.io/fenics/dolfinx/dolfinx:nightly steps: # This action sets the current path to the root of your github repo - uses: actions/checkout@v4 - name: Update pip - run: python3 -m pip install --upgrade pip setuptools + run: python3 -m pip install --break-system-packages --upgrade pip setuptools - name: Install dependencies - run: python3 -m pip install -e ".[docs]" + run: python3 -m pip install --break-system-packages -e ".[docs]" - name: Build docs run: jupyter book build -W . diff --git a/.github/workflows/check_formatting.yml b/.github/workflows/check_formatting.yml index bdc7f6b..7b45df1 100644 --- a/.github/workflows/check_formatting.yml +++ b/.github/workflows/check_formatting.yml @@ -8,17 +8,17 @@ jobs: env: DEB_PYTHON_INSTALL_LAYOUT: deb_system - runs-on: ubuntu-22.04 - container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0 + runs-on: ubuntu-latest + container: ghcr.io/fenics/dolfinx/dolfinx:nightly steps: # This action sets the current path to the root of your github repo - uses: actions/checkout@v4 - name: Update pip - run: python3 -m pip install --upgrade pip setuptools + run: python3 -m pip install --break-system-packages --upgrade pip setuptools - name: Install code - run: python3 -m pip install .[dev] + run: python3 -m pip install --break-system-packages .[dev] - name: Check code formatting with ruff run: | diff --git a/.github/workflows/create_legacy_checkpoint.yml b/.github/workflows/create_legacy_checkpoint.yml index abcf78a..7e0512c 100644 --- a/.github/workflows/create_legacy_checkpoint.yml +++ b/.github/workflows/create_legacy_checkpoint.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - name: Install legacy version of adios4dolfinx - run: python3 -m pip install adios4dolfinx==${adios4dolfinx_version} + run: python3 -m pip install --break-system-packages adios4dolfinx==${adios4dolfinx_version} - name: Create datasets run: python3 ./tests/create_legacy_checkpoint.py --output-dir=$data_dir diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index 1fbbc03..3523a73 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -33,7 +33,7 @@ jobs: test-code: runs-on: "ubuntu-22.04" needs: [create-datasets, create-legacy-datasets, check-formatting] - container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0 + container: ghcr.io/fenics/dolfinx/dolfinx:nightly env: DEB_PYTHON_INSTALL_LAYOUT: deb_system @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v4 - name: Update pip - run: python3 -m pip install --upgrade pip setuptools + run: python3 -m pip install --break-system-packages --upgrade pip setuptools - name: Download legacy data uses: actions/download-artifact@v4 @@ -56,7 +56,7 @@ jobs: path: ./legacy_checkpoint - name: Install package - run: python3 -m pip install .[test] + run: python3 -m pip install --break-system-packages .[test] - name: Run tests run: | diff --git a/.github/workflows/test_package_openmpi.yml b/.github/workflows/test_package_openmpi.yml index 01dc928..13d0ef9 100644 --- a/.github/workflows/test_package_openmpi.yml +++ b/.github/workflows/test_package_openmpi.yml @@ -28,7 +28,7 @@ jobs: artifact_name: "legacy_checkpoint_ompi" test-code: - runs-on: "ubuntu-22.04" + runs-on: ubuntu-latest needs: [create-datasets, create-legacy-datasets] container: ghcr.io/fenics/test-env:current-openmpi env: @@ -46,17 +46,17 @@ jobs: - uses: actions/checkout@v4 - name: Update pip - run: python3 -m pip install --upgrade pip setuptools + run: python3 -m pip install --break-system-packages --upgrade pip setuptools - name: Install DOLFINx - uses: jorgensd/actions/install-dolfinx@v0.3.0 + uses: jorgensd/actions/install-dolfinx@v0.3 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 + dolfinx: main + basix: main + ufl: main + ffcx: main working-directory: ${{ env.working-directory}} - name: Download legacy data @@ -72,7 +72,7 @@ jobs: path: ./legacy_checkpoint - name: Install package - run: python3 -m pip install .[test] + run: python3 -m pip install --break-system-packages .[test] - name: Run tests run: | diff --git a/.github/workflows/test_redhat.yml b/.github/workflows/test_redhat.yml index 0514dcb..e861e52 100644 --- a/.github/workflows/test_redhat.yml +++ b/.github/workflows/test_redhat.yml @@ -45,10 +45,10 @@ jobs: - uses: actions/checkout@v4 - name: Update pip - run: python3 -m pip install --upgrade pip setuptools + run: python3 -m pip install --break-system-packages --upgrade pip setuptools - name: Install DOLFINx - uses: jorgensd/actions/install-dolfinx@v0.3.0 + uses: jorgensd/actions/install-dolfinx@v0.3 with: adios2: ${{ matrix.adios2 }} petsc_arch: ${{ env.PETSC_ARCH }} @@ -72,7 +72,7 @@ jobs: path: ./legacy_checkpoint - name: Install package - run: python3 -m pip install .[test] + run: python3 -m pip install --break-system-packages .[test] - name: Run tests run: | diff --git a/tests/test_checkpointing.py b/tests/test_checkpointing.py index 153fb3f..1ba0863 100644 --- a/tests/test_checkpointing.py +++ b/tests/test_checkpointing.py @@ -87,6 +87,7 @@ def test_read_write_P_3D( degree, basix.LagrangeVariant.gll_warped, shape=(mesh.geometry.dim,), + dtype=mesh.geometry.x.dtype, ) def f(x): @@ -178,6 +179,7 @@ def test_read_write_P_3D_time( degree, basix.LagrangeVariant.gll_warped, shape=(mesh.geometry.dim,), + dtype=mesh.geometry.x.dtype, ) def f(x): diff --git a/tests/test_checkpointing_vector.py b/tests/test_checkpointing_vector.py index 039ec23..ce8716c 100644 --- a/tests/test_checkpointing_vector.py +++ b/tests/test_checkpointing_vector.py @@ -56,7 +56,7 @@ def test_read_write_2D( ): mesh = simplex_mesh_2D f_dtype = get_dtype(mesh.geometry.x.dtype, is_complex) - el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree) + el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree, dtype=mesh.geometry.x.dtype) def f(x): values = np.empty((2, x.shape[1]), dtype=f_dtype) @@ -81,7 +81,7 @@ def test_read_write_3D( ): mesh = simplex_mesh_3D f_dtype = get_dtype(mesh.geometry.x.dtype, is_complex) - el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree) + el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree, dtype=mesh.geometry.x.dtype) def f(x): values = np.empty((3, x.shape[1]), dtype=f_dtype) @@ -114,7 +114,7 @@ def test_read_write_2D_quad( ): mesh = non_simplex_mesh_2D f_dtype = get_dtype(mesh.geometry.x.dtype, is_complex) - el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree) + el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree, dtype=mesh.geometry.x.dtype) def f(x): values = np.empty((2, x.shape[1]), dtype=f_dtype) @@ -146,7 +146,7 @@ def test_read_write_hex( ): mesh = non_simplex_mesh_3D f_dtype = get_dtype(mesh.geometry.x.dtype, is_complex) - el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree) + el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree, dtype=mesh.geometry.x.dtype) def f(x): values = np.empty((3, x.shape[1]), dtype=f_dtype) @@ -179,7 +179,7 @@ def test_read_write_multiple( ): mesh = non_simplex_mesh_2D f_dtype = get_dtype(mesh.geometry.x.dtype, is_complex) - el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree) + el = basix.ufl.element(family, mesh.ufl_cell().cellname(), degree, dtype=mesh.geometry.x.dtype) def f(x): values = np.empty((2, x.shape[1]), dtype=f_dtype)