1+ name : MRIOperators
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+ paths :
7+ - ' MRIOperators/**'
8+ push :
9+ branches :
10+ - master
11+ - ' *'
12+ tags : ' *'
13+ paths :
14+ - ' MRIOperators/**'
15+ jobs :
16+ test :
17+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
18+ runs-on : ${{ matrix.os }}
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ version :
23+ - ' 1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
24+ - ' 1.10' # LTS
25+ # - 'nightly'
26+ os :
27+ - ubuntu-latest
28+ - macos-latest
29+ - windows-latest
30+ arch :
31+ - x64
32+ steps :
33+ - uses : actions/checkout@v3
34+ - uses : julia-actions/setup-julia@v1
35+ with :
36+ version : ${{ matrix.version }}
37+ arch : ${{ matrix.arch }}
38+ - uses : actions/cache@v3
39+ env :
40+ cache-name : cache-artifacts
41+ with :
42+ path : ~/.julia/artifacts
43+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
44+ restore-keys : |
45+ ${{ runner.os }}-test-${{ env.cache-name }}-
46+ ${{ runner.os }}-test-
47+ ${{ runner.os }}-
48+ - name : Install MRIOperators
49+ shell : julia --color=yes --project=. {0}
50+ run : |
51+ using Pkg
52+ Pkg.develop([PackageSpec(path=pwd(), subdir="MRIOperators")])
53+ # Hack, MRIOperators tests depend on MRISimulation
54+ # And MRISimulation depends on MRIOperators
55+ # Can't checkout out latest release if compat breaks
56+ Pkg.develop([PackageSpec(path=pwd(), subdir="MRISimulation")])
57+ - uses : julia-actions/julia-buildpkg@v1
58+ - name : Run MRIOperators tests
59+ shell : julia --color=yes --project=. {0}
60+ run : |
61+ using Pkg
62+ Pkg.test("MRIOperators")
63+ - uses : julia-actions/julia-processcoverage@v1
64+ with :
65+ directories : MRIOperators/src
66+ - uses : codecov/codecov-action@v4.4.0
67+ with :
68+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments