Skip to content

Commit 20f4df2

Browse files
authored
Add testdata as artifact (#50)
* add testdata as artifact * Add test-specific project.toml * manually install artifacts
1 parent 22d3df4 commit 20f4df2

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

Project.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ YAXArrays = "c21b50f5-aa40-41ea-b809-c0f5e47bfa5c"
3939
Zarr = "0a941bbe-ad1d-11e8-39d9-ab76183a1d99"
4040

4141
[compat]
42-
AllocCheck = "0.2.0"
4342
ArchGDAL = "0.10"
4443
ArgParse = "1"
45-
BenchmarkTools = "1.6.0"
4644
CairoMakie = "0.12"
4745
ConstructionBase = "1"
4846
DimensionalData = "0.29"
@@ -61,7 +59,6 @@ LoggingExtras = "1"
6159
Missings = "1"
6260
NetCDF = "0.12"
6361
Proj = "1"
64-
Random = "1.10.0, 1.11.0"
6562
Rasters = "0.12,0.13"
6663
RecurrenceAnalysis = "2"
6764
Statistics = "1"
@@ -72,11 +69,3 @@ YAXArrays = "0.5"
7269
Zarr = "0.9"
7370
julia = "1.10"
7471

75-
[extras]
76-
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
77-
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
78-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
79-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
80-
81-
[targets]
82-
test = ["Test", "AllocCheck", "BenchmarkTools", "Random"]

test/Artifacts.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[rqatestdata]
2+
git-tree-sha1 = "ba3717febf44a19ce75ac4df625f8b0281077745"
3+
4+
[[rqatestdata.download]]
5+
url = "https://github.com/meggart/RQADeforestationTestData/archive/refs/tags/v1.0.tar.gz"
6+
sha256 = "2db9f0d215446a10588e2f3b9117e7f6c7a23ba3f369aa168714b6ba777fcfe9"

test/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
3+
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
4+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
6+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ using RQADeforestation
22
using Test
33
import AllocCheck
44
import Random
5+
import Pkg: Artifacts.@artifact_str, ensure_artifact_installed
56
Random.seed!(1234)
67

8+
ensure_artifact_installed("rqatestdata", "Artifacts.toml")
9+
testdatapath = joinpath(artifact"rqatestdata", "RQADeforestationTestData-1.0")
10+
11+
@testset "Test data" begin
12+
@test isfile(joinpath(testdatapath, "V01R01", "EQUI7_EU020M", "E051N018T3", "SIG0_20210818T051717__VH_D095_E051N018T3_EU020M_V01R01_S1BIWGRDH.tif"))
13+
end
14+
715
@testset "RQADeforestation.jl" begin
816
# Write your tests here.
917

0 commit comments

Comments
 (0)