Skip to content

Commit 0ac2be6

Browse files
committed
fix tests, add CI.yml
1 parent 227c46c commit 0ac2be6

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

Diff for: .github/workflows/CI.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main, dev]
5+
tags: ["*"]
6+
pull_request:
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
version:
15+
- '1' # automatically expands to the latest stable 1.x release of Julia
16+
- 'nightly'
17+
os:
18+
- ubuntu-latest
19+
- macOS-latest
20+
- windows-latest
21+
arch:
22+
- x64
23+
- x86
24+
exclude:
25+
- os: macOS-latest
26+
arch: x86
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v2
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info

Diff for: Project.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ Rasters = "0.11"
2121
julia = "1.10"
2222

2323
[extras]
24+
ArchGDAL = "c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3"
2425
GeoJSON = "61d90e0f-e114-555e-ac52-39dfb47a3ef9"
2526
RasterDataSources = "3cb90ccd-e1b6-4867-9617-4276c8b2ca36"
2627
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2728

2829
[targets]
29-
test = ["Test", "RasterDataSources", "GeoJSON"]
30+
test = ["Test", "ArchGDAL", "RasterDataSources", "GeoJSON"]

0 commit comments

Comments
 (0)