Skip to content

Commit 8491919

Browse files
authored
Merge pull request #57 from JuliaAstro/reorg
Reorganize package
2 parents df33571 + 2a40045 commit 8491919

22 files changed

+750
-811
lines changed

.github/workflows/CI.yml

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
name: CI
2-
32
on:
4-
push:
5-
branches: [master]
6-
tags: ["*"]
73
pull_request:
8-
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
910
jobs:
1011
test:
11-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1213
runs-on: ${{ matrix.os }}
1314
strategy:
15+
fail-fast: false
1416
matrix:
1517
version:
16-
- "1.0"
17-
- "1.3"
18-
- "nightly"
18+
- '1.3' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20+
- 'nightly'
1921
os:
2022
- ubuntu-latest
21-
- macOS-latest
23+
- macos-latest
2224
- windows-latest
2325
arch:
2426
- x64
@@ -28,25 +30,42 @@ jobs:
2830
with:
2931
version: ${{ matrix.version }}
3032
arch: ${{ matrix.arch }}
31-
- uses: julia-actions/julia-buildpkg@latest
32-
- uses: julia-actions/julia-runtest@latest
33-
- uses: julia-actions/julia-uploadcodecov@latest
33+
- uses: actions/cache@v1
3434
env:
35-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info
3649
docs:
3750
name: Documentation
3851
runs-on: ubuntu-latest
3952
steps:
4053
- uses: actions/checkout@v2
4154
- uses: julia-actions/setup-julia@v1
4255
with:
43-
version: "1.3"
44-
- run: julia --project=docs -e '
45-
using Pkg;
46-
Pkg.develop(PackageSpec(; path=pwd()));
47-
Pkg.instantiate();'
56+
version: '1'
57+
- run: |
58+
julia --project=docs -e '
59+
using Pkg
60+
Pkg.develop(PackageSpec(path=pwd()))
61+
Pkg.instantiate()'
62+
- run: |
63+
julia --project=docs -e '
64+
using Documenter: doctest
65+
using AstroTime
66+
doctest(AstroTime)'
4867
- run: julia --project=docs docs/make.jl
4968
env:
50-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5170
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
52-
GKSwstype: "100" # fix GKS socket error for plots made in @example blocks
71+

.github/workflows/TagBot.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: TagBot
2-
32
on:
4-
schedule:
5-
- cron: 0 * * * *
6-
push:
7-
branches:
8-
- actions/trigger/TagBot
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
97
jobs:
108
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
1110
runs-on: ubuntu-latest
1211
steps:
1312
- uses: JuliaRegistries/TagBot@v1

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "~0.24"
5+
Documenter = "~0.26"

docs/src/api/epochs.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# Epochs
22

3-
```@meta
4-
DocTestSetup = quote
5-
using AstroTime
6-
end
7-
```
8-
93
```@autodocs
104
Modules = [AstroTime.Epochs]
115
Private = false
126
```
137

14-
```@meta
15-
DocTestSetup = nothing
16-
```
17-

docs/src/api/periods.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# Periods
22

3-
```@meta
4-
DocTestSetup = quote
5-
using AstroTime
6-
end
7-
```
8-
93
```@autodocs
104
Modules = [AstroTime.Periods]
115
Private = false
126
```
137

14-
```@meta
15-
DocTestSetup = nothing
16-
```
17-

docs/src/api/timescales.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Time Scales
22

3-
```@meta
4-
DocTestSetup = quote
5-
using AstroTime
6-
end
7-
```
8-
93
```@docs
104
AstroTime.update
115
```
@@ -19,7 +13,3 @@ Modules = [AstroTime.TimeScales]
1913
Private = false
2014
```
2115

22-
```@meta
23-
DocTestSetup = nothing
24-
```
25-

0 commit comments

Comments
 (0)