From 792aeca5df1b2d38a39cb10f75618e4eab541cb8 Mon Sep 17 00:00:00 2001 From: Kijin Nam Date: Thu, 5 Feb 2026 13:59:51 -0800 Subject: [PATCH 1/2] Add missing testmesh file It is found that a test mesh grid file is missing. It is added. --- tests/testdata/testmesh.gr3 | 315 ++++++++++++++++++++++++++++++++++++ 1 file changed, 315 insertions(+) create mode 100644 tests/testdata/testmesh.gr3 diff --git a/tests/testdata/testmesh.gr3 b/tests/testdata/testmesh.gr3 new file mode 100644 index 0000000..c15672d --- /dev/null +++ b/tests/testdata/testmesh.gr3 @@ -0,0 +1,315 @@ +hgrid.gr3 +135 112 ! number of elements, nodes +1 0.0 100.0 0.0 +2 0.0 90.0 0.0 +3 10.0 100.0 0.0 +4 0.0 80.0 0.0 +5 10.0 90.0 0.0 +6 20.0 100.0 0.0 +7 0.0 70.0 0.0 +8 10.0 80.0 0.0 +9 20.0 90.0 0.0 +10 30.0 100.0 0.0 +11 0.0 60.0 0.0 +12 10.0 70.0 0.0 +13 20.0 80.0 0.0 +14 30.0 90.0 0.0 +15 40.0 100.0 0.0 +16 0.0 50.0 0.0 +17 10.0 60.0 0.0 +18 20.0 70.0 0.0 +19 30.0 80.0 0.0 +20 40.0 90.0 0.0 +21 50.0 100.0 0.0 +22 0.0 40.0 0.0 +23 10.0 50.0 0.0 +24 20.0 60.0 0.0 +25 30.0 70.0 0.0 +26 40.0 80.0 0.0 +27 50.0 90.0 0.0 +28 60.0 100.0 0.0 +29 0.0 30.0 0.0 +30 10.0 40.0 0.0 +31 20.0 50.0 0.0 +32 30.0 60.0 0.0 +33 40.0 70.0 0.0 +34 50.0 80.0 0.0 +35 60.0 90.0 0.0 +36 70.0 100.0 0.0 +37 0.0 20.0 0.0 +38 10.0 30.0 0.0 +39 20.0 40.0 0.0 +40 30.0 50.0 0.0 +41 50.0 70.0 0.0 +42 60.0 80.0 0.0 +43 70.0 90.0 0.0 +44 80.0 100.0 0.0 +45 0.0 10.0 0.0 +46 10.0 20.0 0.0 +47 20.0 30.0 0.0 +48 30.0 40.0 0.0 +49 60.0 70.0 0.0 +50 70.0 80.0 0.0 +51 80.0 90.0 0.0 +52 90.0 100.0 0.0 +53 0.0 0.0 0.0 +54 10.0 10.0 0.0 +55 20.0 20.0 0.0 +56 30.0 30.0 0.0 +57 70.0 70.0 0.0 +58 80.0 80.0 0.0 +59 90.0 90.0 0.0 +60 100.0 100.0 0.0 +61 10.0 0.0 0.0 +62 20.0 10.0 0.0 +63 30.0 20.0 0.0 +64 40.0 30.0 0.0 +65 70.0 60.0 0.0 +66 80.0 70.0 0.0 +67 90.0 80.0 0.0 +68 100.0 90.0 0.0 +69 20.0 0.0 0.0 +70 30.0 10.0 0.0 +71 40.0 20.0 0.0 +72 50.0 30.0 0.0 +73 70.0 50.0 0.0 +74 80.0 60.0 0.0 +75 90.0 70.0 0.0 +76 100.0 80.0 0.0 +77 30.0 0.0 0.0 +78 40.0 10.0 0.0 +79 50.0 20.0 0.0 +80 60.0 30.0 0.0 +81 70.0 40.0 0.0 +82 80.0 50.0 0.0 +83 90.0 60.0 0.0 +84 100.0 70.0 0.0 +85 40.0 0.0 0.0 +86 50.0 10.0 0.0 +87 60.0 20.0 0.0 +88 70.0 30.0 0.0 +89 80.0 40.0 0.0 +90 90.0 50.0 0.0 +91 100.0 60.0 0.0 +92 50.0 0.0 0.0 +93 60.0 10.0 0.0 +94 70.0 20.0 0.0 +95 80.0 30.0 0.0 +96 90.0 40.0 0.0 +97 100.0 50.0 0.0 +98 60.0 0.0 0.0 +99 70.0 10.0 0.0 +100 80.0 20.0 0.0 +101 90.0 30.0 0.0 +102 100.0 40.0 0.0 +103 70.0 0.0 0.0 +104 80.0 10.0 0.0 +105 90.0 20.0 0.0 +106 100.0 30.0 0.0 +107 80.0 0.0 0.0 +108 90.0 10.0 0.0 +109 100.0 20.0 0.0 +110 90.0 0.0 0.0 +111 100.0 10.0 0.0 +112 100.0 0.0 0.0 +1 3 3 1 5 +2 3 5 2 8 +3 3 6 3 9 +4 3 8 4 12 +5 3 9 5 13 +6 3 10 6 14 +7 3 17 12 7 +8 3 13 8 18 +9 3 14 9 19 +10 3 10 14 20 +11 3 23 17 16 +12 3 24 18 12 +13 3 19 13 25 +14 3 14 19 26 +15 3 15 20 21 +16 3 30 23 22 +17 3 31 24 23 +18 3 32 25 18 +19 3 19 25 26 +20 3 20 26 27 +21 3 21 27 28 +22 3 38 30 29 +23 3 39 31 30 +24 3 40 32 24 +25 3 26 33 34 +26 3 27 34 35 +27 3 28 35 36 +28 3 29 37 46 +29 3 47 39 30 +30 3 48 40 31 +31 3 34 41 42 +32 3 35 42 43 +33 3 51 44 43 +34 3 37 45 46 +35 3 38 46 47 +36 3 56 48 47 +37 3 42 49 50 +38 3 58 51 50 +39 3 59 52 51 +40 3 45 53 54 +41 3 46 54 55 +42 3 47 55 56 +43 3 66 58 57 +44 3 67 59 58 +45 3 68 60 59 +46 3 54 61 62 +47 3 55 62 63 +48 4 71 64 56 63 +49 4 66 57 65 74 +50 3 75 67 66 +51 3 76 68 67 +52 3 62 69 70 +53 4 78 71 63 70 +54 4 79 72 64 71 +55 4 74 65 73 82 +56 4 75 66 74 83 +57 3 84 76 75 +58 4 85 78 70 77 +59 4 86 79 71 78 +60 4 87 80 72 79 +61 4 82 73 81 89 +62 4 83 74 82 90 +63 4 84 75 83 91 +64 4 92 86 78 85 +65 4 93 87 79 86 +66 4 94 88 80 87 +67 4 89 81 88 95 +68 4 90 82 89 96 +69 4 91 83 90 97 +70 4 98 93 86 92 +71 4 99 94 87 93 +72 4 95 88 94 100 +73 4 96 89 95 101 +74 4 97 90 96 102 +75 4 103 99 93 98 +76 4 100 94 99 104 +77 4 101 95 100 105 +78 4 102 96 101 106 +79 4 104 99 103 107 +80 4 105 100 104 108 +81 4 106 101 105 109 +82 4 108 104 107 110 +83 4 109 105 108 111 +84 4 111 108 110 112 +85 3 1 2 5 +86 3 2 4 8 +87 3 3 5 9 +88 3 4 7 12 +89 3 5 8 13 +90 3 6 9 14 +91 3 17 7 11 +92 3 8 12 18 +93 3 9 13 19 +94 3 10 20 15 +95 3 17 11 16 +96 3 24 12 17 +97 3 13 18 25 +98 3 14 26 20 +99 3 20 27 21 +100 3 23 16 22 +101 3 24 17 23 +102 3 32 18 24 +103 3 25 33 26 +104 3 26 34 27 +105 3 27 35 28 +106 3 30 22 29 +107 3 31 23 30 +108 3 40 24 31 +109 3 33 41 34 +110 3 34 42 35 +111 3 35 43 36 +112 3 29 46 38 +113 3 47 30 38 +114 3 48 31 39 +115 3 41 49 42 +116 3 42 50 43 +117 3 44 36 43 +118 3 45 54 46 +119 3 46 55 47 +120 3 48 39 47 +121 3 49 57 50 +122 3 51 43 50 +123 3 52 44 51 +124 3 53 61 54 +125 3 54 62 55 +126 3 55 63 56 +127 3 58 50 57 +128 3 59 51 58 +129 3 60 52 59 +130 3 61 69 62 +131 3 62 70 63 +132 3 67 58 66 +133 3 68 59 67 +134 3 69 77 70 +135 3 76 67 75 +1 !Number of open boundaries +11 !Number of open boundary nodes +11 !Number of nodes for open boundary (1) "ocean" +1 +2 +4 +7 +11 +16 +22 +29 +37 +45 +53 +2 !Number of land boundaries +45 !Number of land boundary nodes (including islands) +31 0 !Number of nodes for land boundary 1 ('0' means exterior land boundary) +53 +61 +69 +77 +85 +92 +98 +103 +107 +110 +112 +111 +109 +106 +102 +97 +91 +84 +76 +68 +60 +52 +44 +36 +28 +21 +15 +10 +6 +3 +1 +17 1 !Number of nodes for land boundary 2 ('0' means exterior land boundary) +25 +33 +41 +49 +57 +65 +73 +81 +88 +80 +72 +64 +56 +48 +40 +32 +25 From f146ba7f4500af2d0e1daf58a85e64a3619bbfac Mon Sep 17 00:00:00 2001 From: Kijin Nam Date: Thu, 5 Feb 2026 14:38:04 -0800 Subject: [PATCH 2/2] Update GitHub actions This commit updates actions to remove 'deploy' steps for PRs. --- .github/workflows/documentation.yaml | 2 +- .github/workflows/pr.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 8e73f5a..4967592 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -1,7 +1,7 @@ # Copied from https://coderefinery.github.io/documentation/gh_workflow/ and # modified to use the GitHub Actions sphinx-build action name: docs -on: [push, pull_request, workflow_dispatch] +on: [push, workflow_dispatch] permissions: contents: write jobs: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..7bba348 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,27 @@ +# Copied from https://coderefinery.github.io/documentation/gh_workflow/ and +# modified to use the GitHub Actions sphinx-build action +name: docs +on: [pull_request] +permissions: + contents: write +jobs: + docs: + runs-on: ubuntu-latest + steps: + - name: Clone the whole repository + uses: GuillaumeFalourd/clone-github-repo-action@v2.3 + with: + branch: main + owner: cadwrdeltamodeling + repository: suxarray + path: ./suxarray + - uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Sphinx build + run: | + pip install . + pip install sphinx sphinx_rtd_theme myst-nb sphinx-versioned-docs + sphinx-apidoc -o docs suxarray + sphinx-versioned --output docs/_build --local-conf docs/conf.py --branch "main" --main-branch "main" + working-directory: ./suxarray