diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml new file mode 100644 index 0000000..021527d --- /dev/null +++ b/.JuliaFormatter.toml @@ -0,0 +1 @@ +style = "default" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 337aba6..226529c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -5,6 +5,10 @@ on: - master tags: ['*'] pull_request: +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. @@ -18,7 +22,7 @@ jobs: matrix: version: - '1.6' - - '^1.9.0-0' + - '^1.10.0-0' - 'nightly' os: - ubuntu-latest @@ -28,13 +32,14 @@ jobs: - x64 fail-fast: false steps: - - uses: actions/checkout@v3 - - uses: julia-actions/setup-julia@latest + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: arch: ${{ matrix.arch }} version: ${{ matrix.version }} - - uses: julia-actions/cache@v1 - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 test-system-apt: timeout-minutes: 20 @@ -45,7 +50,7 @@ jobs: - libmpich-dev - libopenmpi-dev julia_version: - - "1" + - "1.10" fail-fast: false env: P4ESTTYPES_TEST: P4ESTTYPES_CUSTOM_MPI_CUSTOM @@ -53,18 +58,20 @@ jobs: OMPI_MCA_btl_base_warn_component_unused: 0 OMPI_ALLOW_RUN_AS_ROOT: 1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 + OMPI_MCA_rmaps_base_oversubscribe: true + PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install MPI via apt run: | sudo apt-get update sudo apt-get install -y $MPI env: MPI: ${{ matrix.mpi }} - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.julia_version }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 - name: Build P4est run: | P4EST_RELEASE="2.8.5" @@ -88,4 +95,5 @@ jobs: run: | include(joinpath(pwd(), "test", "configure_packages.jl")) - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 diff --git a/.github/workflows/DocPreviewCleanup.yml b/.github/workflows/DocPreviewCleanup.yml index 75b7fae..65f072b 100644 --- a/.github/workflows/DocPreviewCleanup.yml +++ b/.github/workflows/DocPreviewCleanup.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: gh-pages diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml index 98c4840..ae00388 100644 --- a/.github/workflows/Documenter.yml +++ b/.github/workflows/Documenter.yml @@ -27,7 +27,7 @@ jobs: contents: write statuses: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: '1' diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index c46cade..0643422 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -19,12 +19,12 @@ jobs: - uses: julia-actions/setup-julia@v1 with: version: '1' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-invalidations@v1 id: invs_pr - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.repository.default_branch }} - uses: julia-actions/julia-buildpkg@v1 diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 988a58d..1ddc85a 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -8,6 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Actions Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@v1.15.1 + uses: crate-ci/typos@v1.22.3 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..673552a --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default.extend-words] +pn = "pn" diff --git a/Project.toml b/Project.toml index 4c3d1ea..7390243 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "P4estTypes" uuid = "f636fe8e-398d-42a9-9d15-dd2c0670d30f" authors = ["Lucas C Wilcox "] -version = "0.1.3" +version = "0.1.4" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" @@ -19,4 +19,5 @@ MPI = "0.19, 0.20" P4est = "0.4.6" PrecompileTools = "1" RecipesBase = "1" +SparseArrays = "1" julia = "1.6" diff --git a/docs/Project.toml b/docs/Project.toml index dfa65cd..1814eb3 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,2 +1,5 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" + +[compat] +Documenter = "1" diff --git a/docs/make.jl b/docs/make.jl index 7c15ea1..f99f3a8 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -21,7 +21,6 @@ makedocs(; "Index" => "refindex.md" ], checkdocs = :exports, - strict = true, ) deploydocs(; diff --git a/test/Project.toml b/test/Project.toml index 798660f..e25b1f6 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -9,7 +9,11 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [compat] -Aqua = "0.6" +Aqua = "0.8" MPI = "0.20,0.19" MPIPreferences = "0.1" P4est = "0.4.4" +Pkg = "1" +Preferences = "1" +Test = "1" +UUIDs = "1" diff --git a/test/configure_packages.jl b/test/configure_packages.jl index 27bba4a..199d3b7 100644 --- a/test/configure_packages.jl +++ b/test/configure_packages.jl @@ -7,6 +7,7 @@ Pkg.add("UUIDs") @static if VERSION >= v"1.8" Pkg.compat("MPIPreferences", "0.1") Pkg.compat("Preferences", "1") + Pkg.compat("UUIDs", "1") end const P4ESTTYPES_TEST = get(ENV, "P4ESTTYPES_TEST", "P4ESTTYPES_JLL_MPI_DEFAULT")