Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
version:
- "1.0"
- "min"
- "1"
- "nightly"
os:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CompatHelper
on:
schedule:
- cron: 0 23 * * *
- cron: 0 23 */5 * *
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:

- name: Install CompatHelper
shell: julia --color=yes {0}
run: using Pkg; Pkg.add("CompatHelper")
Expand Down
13 changes: 4 additions & 9 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
Dates = "1"
DelimitedFiles = "1"
LinearAlgebra = "1"
Printf = "1"
StaticArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 1.0"
julia = "1"

[extras]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
julia = "1.10"
3 changes: 2 additions & 1 deletion src/jdcnv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ equivalent to `jdcnv(now(Dates.UTC))`.

For the conversion of Julian date to number of Julian days, use `juldate`.
"""
const jdcnv = Dates.datetime2julian
jdcnv(d::DateTime) = Dates.datetime2julian(d)
jdcnv(d::AbstractString) = Dates.datetime2julian(Dates.DateTime(d))
jdcnv(date...) = jdcnv(DateTime(date...))
6 changes: 6 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
13 changes: 10 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# This file is a part of AstroLib.jl. License is MIT "Expat".
# Copyright (C) 2016 Mosè Giordano.

using Aqua
using AstroLib
using Test
using Dates
#using Documenter
using Documenter

@testset "AstroLib" begin
@testset "Aqua.jl" begin
Aqua.test_all(AstroLib)
end

include("utils-tests.jl")
include("misc-tests.jl")

#DocMeta.setdocmeta!(AstroLib, :DocTestSetup, :(using AstroLib), recursive=true)
#doctest(AstroLib)
if Sys.islinux()
DocMeta.setdocmeta!(AstroLib, :DocTestSetup, :(using AstroLib), recursive=true)
doctest(AstroLib)
end
end

# Dummy calls to "show" for new data types, just to increase code coverage.
Expand Down
Loading