-
Notifications
You must be signed in to change notification settings - Fork 11
114 lines (97 loc) · 3.17 KB
/
Copy pathCI.yml
File metadata and controls
114 lines (97 loc) · 3.17 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: CI
on:
pull_request:
branches:
- main
paths:
- '**.jl'
- '**.toml'
push:
branches:
- main
paths:
- '**.jl'
- '**.toml'
concurrency:
# cancels when a PR gets updated
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
spectralfitting:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - spectralfitting
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1']
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: fjebaker/spectral-fitting-test-suite
path: data
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v3
- name: Add AstroRegistry
shell: julia --project=. --color=yes {0}
run: |
import Pkg
Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/JuliaRegistries/General"))
Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/astro-group-bristol/AstroRegistry/"))
- uses: julia-actions/julia-buildpkg@v1
- name: Run SpectralFitting test
shell: julia --color=yes --math-mode=ieee --check-bounds=yes -tauto --project=. {0}
run: |
import Pkg
Pkg.test(; coverage=true)
env:
SF_TEST_SUITE_DATA: "../data/sample-data"
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src
- uses: codecov/codecov-action@v7
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
xspecmodels:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - xspecmodels
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1']
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: fjebaker/spectral-fitting-test-suite
path: data
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v3
- name: Add AstroRegistry
shell: julia --project=lib/XSPECModels/test --color=yes {0}
run: |
using Pkg
Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/JuliaRegistries/General"))
Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/astro-group-bristol/AstroRegistry/"))
pkg"dev . ./lib/XSPECModels"
- name: Run XSPECModels test
shell: julia --color=yes --math-mode=ieee --check-bounds=yes -tauto --project=lib/XSPECModels/test {0}
run: |
import Pkg
Pkg.test("XSPECModels"; coverage=true)
env:
SF_TEST_SUITE_DATA: "../../../data/sample-data"
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src
- uses: codecov/codecov-action@v7
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}