Skip to content

Commit

Permalink
fixing artifacts in tests(#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aTrotier authored Nov 18, 2024
1 parent 17d024a commit ee10c7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
docs:
Expand Down
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["aTrotier <a.trotier@gmail.com> and contributors"]
version = "0.0.1"

[deps]
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
MRICoilSensitivities = "c57eb701-aafc-44a2-a53c-128049758959"
MRIFiles = "5a6f062f-bf45-497d-b654-ad17aae2a530"
Expand All @@ -25,8 +26,8 @@ Statistics = "1.10"
julia = "1.10"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test","LazyArtifacts"]
test = ["Test", "LazyArtifacts"]
7 changes: 5 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ using LazyArtifacts
using SEQ_BRUKER_a_MP2RAGE_CS_360.NIfTI
using SEQ_BRUKER_a_MP2RAGE_CS_360.JSON
using Pkg
using Artifacts

Pkg.instantiate()
const datadir = joinpath(artifact"MP2RAGE_data")
toml = Artifacts.find_artifacts_toml(@__DIR__)


const datadir = Pkg.Artifacts.ensure_artifact_installed("MP2RAGE_data", toml)
@info "The test data is located at $datadir."

@testset "SEQ_BRUKER_a_MP2RAGE_CS_360.jl" begin
Expand Down

0 comments on commit ee10c7f

Please sign in to comment.