From 8b9a835ce6fa7b23acdc2108fa43c699709db863 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 16:32:34 -0800 Subject: [PATCH 01/10] including `CompatHelper` workflow --- .github/workflows/CompatHelper.yml | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/CompatHelper.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..f67b3fe --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,50 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +permissions: + contents: write + pull-requests: write +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Check if Julia is already available in the PATH + id: julia_in_path + run: which julia + continue-on-error: true + - name: Install Julia, but only if it is not already available in the PATH + uses: julia-actions/setup-julia@v2 + with: + version: '1' + arch: ${{ runner.arch }} + if: steps.julia_in_path.outcome != 'success' + - name: "Add the General registry via Git" + run: | + import Pkg + ENV["JULIA_PKG_SERVER"] = "" + Pkg.Registry.add("General") + shell: julia --color=yes {0} + - name: "Install CompatHelper" + run: | + import Pkg + name = "CompatHelper" + uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" + version = "3" + Pkg.add(; name, uuid, version) + shell: julia --color=yes {0} + - name: "Run CompatHelper" + run: | + import CompatHelper + CompatHelper.main() + shell: julia --color=yes {0} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # This repo uses Documenter, so we can reuse our [Documenter SSH key](https://documenter.juliadocs.org/stable/man/hosting/walkthrough/). + # If we didn't have one of those setup, we could configure a dedicated ssh deploy key `COMPATHELPER_PRIV` following https://juliaregistries.github.io/CompatHelper.jl/dev/#Creating-SSH-Key. + # Either way, we need an SSH key if we want the PRs that CompatHelper creates to be able to trigger CI workflows themselves. + # That is because GITHUB_TOKEN's can't trigger other workflows (see https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow). + # Check if you have a deploy key setup using these docs: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys. + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} + # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} From fd427625e5b74b90419406658fb1707202b6b1b2 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 16:40:53 -0800 Subject: [PATCH 02/10] including continuous integration --- .github/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/ci.yml diff --git a/.github/ci.yml b/.github/ci.yml new file mode 100644 index 0000000..0642c1b --- /dev/null +++ b/.github/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: + - main # or master + pull_request: + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + version: ['1.6', '1.9', '1'] # Test on these Julia versions + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + - uses: actions/cache@v3 + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-julia-${{ matrix.version }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v3 + with: + file: lcov.info \ No newline at end of file From 0f7b1d1a92a1dbc39b29e7e76337b836e51f70ad Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 16:42:17 -0800 Subject: [PATCH 03/10] fixing CI --- .github/{ => workflows}/ci.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/ci.yml (100%) diff --git a/.github/ci.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/ci.yml rename to .github/workflows/ci.yml From 3dc9b4805b9e67b4d446652439f8933050bc63a5 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 16:46:54 -0800 Subject: [PATCH 04/10] updating CI for 1.7 ~ 1.11 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0642c1b..52741c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - version: ['1.6', '1.9', '1'] # Test on these Julia versions + version: ['1.7', '1.8', '1.9', '1.10', '1.11'] # Test on these Julia versions steps: - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 From 2b62b1dc76dec05cfe03eb270e9aebc3464c7111 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 16:48:09 -0800 Subject: [PATCH 05/10] setting minimum Julia to 1.8 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52741c3..0ba4c3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - version: ['1.7', '1.8', '1.9', '1.10', '1.11'] # Test on these Julia versions + version: ['1.8', '1.9', '1.10', '1.11'] # Test on these Julia versions steps: - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 From af4d37186508906c8b64063c3abb19e56c87f651 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 17:07:05 -0800 Subject: [PATCH 06/10] including [compat] --- Project.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Project.toml b/Project.toml index d462ed2..5107121 100644 --- a/Project.toml +++ b/Project.toml @@ -11,3 +11,13 @@ GeoDataFrames = "62cb38b5-d8d2-4862-a48e-6a340996859f" GeoFormatTypes = "68eda718-8dee-11e9-39e7-89f7f65f511f" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689" + +[compat] +julia = "1.8 - 1.11" +ArchGDAL = "0.10" +DataFrames = "1.7" +DimensionalData = "0.29" +GeoDataFrames = "0.3" +GeoFormatTypes = "0.4" +JSON = "0.21" +Rasters = "0.14" \ No newline at end of file From b321db7ba4b273280f8b261197190bc78c4a298d Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 17:10:59 -0800 Subject: [PATCH 07/10] updating `DimensionalData` compatibility to `0.25 - 0.29` --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 5107121..a150617 100644 --- a/Project.toml +++ b/Project.toml @@ -16,7 +16,7 @@ Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689" julia = "1.8 - 1.11" ArchGDAL = "0.10" DataFrames = "1.7" -DimensionalData = "0.29" +DimensionalData = "0.25 - 0.29" GeoDataFrames = "0.3" GeoFormatTypes = "0.4" JSON = "0.21" From a06a55d84a5d196287865b6e590b34e82b46e66d Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 17:14:44 -0800 Subject: [PATCH 08/10] updating `Rasters` compatibitlity to `0.10 - 0.14` --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index a150617..aa68667 100644 --- a/Project.toml +++ b/Project.toml @@ -20,4 +20,4 @@ DimensionalData = "0.25 - 0.29" GeoDataFrames = "0.3" GeoFormatTypes = "0.4" JSON = "0.21" -Rasters = "0.14" \ No newline at end of file +Rasters = "0.10 - 0.14" \ No newline at end of file From d5f7d6cd2328bbfa49c986a08659e7e404adb839 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 17:18:47 -0800 Subject: [PATCH 09/10] including `Test` --- Project.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index aa68667..d8a11d1 100644 --- a/Project.toml +++ b/Project.toml @@ -11,13 +11,15 @@ GeoDataFrames = "62cb38b5-d8d2-4862-a48e-6a340996859f" GeoFormatTypes = "68eda718-8dee-11e9-39e7-89f7f65f511f" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] -julia = "1.8 - 1.11" ArchGDAL = "0.10" DataFrames = "1.7" DimensionalData = "0.25 - 0.29" GeoDataFrames = "0.3" GeoFormatTypes = "0.4" JSON = "0.21" -Rasters = "0.10 - 0.14" \ No newline at end of file +Rasters = "0.10 - 0.14" +Test = "1.11.0" +julia = "1.8 - 1.11" From e24fbc4ee402ed12c29e70deb4f794f391680223 Mon Sep 17 00:00:00 2001 From: Gregory Halverson Date: Mon, 24 Feb 2025 17:20:55 -0800 Subject: [PATCH 10/10] updating `Test` compatibility to `1.8 - 1.11` --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index d8a11d1..6084f08 100644 --- a/Project.toml +++ b/Project.toml @@ -21,5 +21,5 @@ GeoDataFrames = "0.3" GeoFormatTypes = "0.4" JSON = "0.21" Rasters = "0.10 - 0.14" -Test = "1.11.0" +Test = "1.8 - 1.11" julia = "1.8 - 1.11"