Skip to content

Commit 2d66338

Browse files
authored
remove upper compat bound to DD (#108)
* remove upper compat bound to DD It really has been a nightmare for me. So many times in my projects I can't update packages because CliamteBase keeps things back. I check and 9/10 times its because of another breaking release in DD.jl. I'll keep the bounds unlimited until there is a 1.0 there. * update CI files
1 parent 2bde04d commit 2d66338

File tree

4 files changed

+51
-52
lines changed

4 files changed

+51
-52
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,50 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 * * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
79
jobs:
810
CompatHelper:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
matrix:
12-
julia-version: [1]
13-
julia-arch: [x86]
14-
os: [ubuntu-latest]
11+
runs-on: ubuntu-latest
1512
steps:
16-
- uses: julia-actions/setup-julia@latest
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v2
1719
with:
18-
version: ${{ matrix.julia-version }}
19-
- name: Pkg.add("CompatHelper")
20-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
21-
- name: CompatHelper.main()
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
2242
env:
2343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
run: julia -e 'using CompatHelper; CompatHelper.main()'
44+
# This repo uses Documenter, so we can reuse our [Documenter SSH key](https://documenter.juliadocs.org/stable/man/hosting/walkthrough/).
45+
# 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.
46+
# Either way, we need an SSH key if we want the PRs that CompatHelper creates to be able to trigger CI workflows themselves.
47+
# 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).
48+
# 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.
49+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
50+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- uses: JuliaRegistries/TagBot@v1
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
15-
ssh: ${{ secrets.DOCUMENTER_KEY }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: CI
22
on:
33
pull_request:
44
branches:
5-
- master
5+
- main
6+
- '**' # matches every branch
67
push:
78
branches:
8-
- master
9+
- main
910
tags: '*'
1011
jobs:
1112
test:
@@ -15,8 +16,8 @@ jobs:
1516
fail-fast: false
1617
matrix:
1718
version:
18-
- '1' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
os: [ubuntu-latest, windows-latest, macos-latest] # adjust according to need, e.g. os: [ubuntu-latest] if testing only on linux
19+
- '1'
20+
os: [ubuntu-latest] # adjust according to need, e.g. os: [ubuntu-latest] if testing only on linux
2021
arch:
2122
- x64
2223
steps:
@@ -33,7 +34,7 @@ jobs:
3334
with:
3435
version: ${{ matrix.version }}
3536
arch: ${{ matrix.arch }}
36-
- uses: actions/cache@v1
37+
- uses: actions/cache@v4
3738
env:
3839
cache-name: cache-artifacts
3940
with:
@@ -44,37 +45,9 @@ jobs:
4445
${{ runner.os }}-test-
4546
${{ runner.os }}-
4647
- uses: julia-actions/julia-buildpkg@v1
48+
4749
- uses: julia-actions/julia-runtest@v1
4850
- uses: julia-actions/julia-processcoverage@v1
4951
- uses: codecov/codecov-action@v1
5052
with:
5153
file: lcov.info
52-
53-
docs:
54-
name: Documentation
55-
runs-on: ubuntu-latest
56-
steps:
57-
# Cancel ongoing documentation build if pushing to branch again before the previous
58-
# build is finished.
59-
- name: Cancel ongoing documentation builds for previous commits
60-
uses: styfle/[email protected]
61-
with:
62-
access_token: ${{ github.token }}
63-
64-
# Build docs
65-
- uses: actions/checkout@v2
66-
- uses: julia-actions/setup-julia@v1
67-
with:
68-
version: '1'
69-
- name: Instantiate and install dependencies
70-
run: |
71-
julia --project=docs -e '
72-
using Pkg
73-
Pkg.develop(PackageSpec(path=pwd()))
74-
Pkg.instantiate()'
75-
- name: Generate documentation and deploy
76-
env: # needed for pushing to gh-pages branch
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
79-
run:
80-
julia --project=docs docs/make.jl

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimateBase"
22
uuid = "35604d93-0fb8-4872-9436-495b01d137e2"
33
authors = ["Datseris <[email protected]>", "Philippe Roy <[email protected]>"]
4-
version = "0.17.3"
4+
version = "0.17.4"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
@@ -20,7 +20,7 @@ GeoMakie = "db073c08-6b98-4ee5-b6a4-5efafb3259c6"
2020
ClimateBaseVisualizations = "GeoMakie"
2121

2222
[compat]
23-
DimensionalData = "0.27"
23+
DimensionalData = ">= 0.27"
2424
GeoMakie = "0.6"
2525
Interpolations = "0.13.2, 0.14, 0.15"
2626
NCDatasets = "0.11, 0.12"

0 commit comments

Comments
 (0)