Skip to content

Commit 1649ca6

Browse files
Merge pull request #2 from gregory-halverson/main
[compat]
2 parents 6b621fe + e24fbc4 commit 1649ca6

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
CompatHelper:
11+
runs-on: ubuntu-latest
12+
steps:
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
19+
with:
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}
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
version: ['1.8', '1.9', '1.10', '1.11'] # Test on these Julia versions
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: julia-actions/setup-julia@v1
20+
with:
21+
version: ${{ matrix.version }}
22+
- uses: actions/cache@v3
23+
with:
24+
path: ~/.julia/artifacts
25+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ hashFiles('**/Project.toml') }}
26+
restore-keys: |
27+
${{ runner.os }}-julia-${{ matrix.version }}-
28+
- uses: julia-actions/julia-buildpkg@v1
29+
- uses: julia-actions/julia-runtest@v1
30+
- uses: julia-actions/julia-processcoverage@v1
31+
- uses: codecov/codecov-action@v3
32+
with:
33+
file: lcov.info

Project.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ GeoDataFrames = "62cb38b5-d8d2-4862-a48e-6a340996859f"
1111
GeoFormatTypes = "68eda718-8dee-11e9-39e7-89f7f65f511f"
1212
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1313
Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689"
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[compat]
17+
ArchGDAL = "0.10"
18+
DataFrames = "1.7"
19+
DimensionalData = "0.25 - 0.29"
20+
GeoDataFrames = "0.3"
21+
GeoFormatTypes = "0.4"
22+
JSON = "0.21"
23+
Rasters = "0.10 - 0.14"
24+
Test = "1.8 - 1.11"
25+
julia = "1.8 - 1.11"

0 commit comments

Comments
 (0)