-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (87 loc) · 2.72 KB
/
Tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Tests
#
# Content copied and modified from https://github.com/SciML/Optimization.jl
#
on:
pull_request:
branches:
- main
paths-ignore:
- "**/docs/**"
- "**/paper/**"
- "**/README.md"
push:
branches:
- main
paths-ignore:
- "**/docs/**"
- "**/paper/**"
- "**/README.md"
workflow_dispatch:
jobs:
test-subpackages:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group:
- EphemerisSourcesBase
- HorizonsAPI
- HorizonsEphemeris
- SPICEKernels
- SPICEBodies
version:
- "1"
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: actions/cache@v4
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/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
test-superpackage:
runs-on: ubuntu-latest
needs: [test-subpackages]
strategy:
fail-fast: false
matrix:
version:
- "1"
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: actions/cache@v4
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/julia-buildpkg@v1
- name: Build Development Environment
run: julia --project -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "EphemerisSourcesBase"))); Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsAPI"))); Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsEphemeris"))); Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEKernels"))); Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEBodies")));Pkg.instantiate()'
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,lib
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: JuliaAstro/EphemerisSources.jl