Skip to content

Commit

Permalink
Merge pull request #9 from Arkoniak/update_julia_1
Browse files Browse the repository at this point in the history
Update to julia 1
  • Loading branch information
Arkoniak authored Apr 2, 2021
2 parents ef1fcd2 + 2821762 commit 691e501
Show file tree
Hide file tree
Showing 44 changed files with 515 additions and 800 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
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
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.3'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.add(PackageSpec(url="https://github.com/Arkoniak/Documenter.jl", rev="repo_url"));
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using Timestamps
DocMeta.setdocmeta!(Timestamps, :DocTestSetup, :(using Timestamps); recursive=true)
doctest(Timestamps)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper"); Pkg.resolve()'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
*.swp
*.jl.*.cov
*.jl.cov
*.jl.mem
/Manifest.toml
/docs/Manifest.toml
/docs/build/
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Algorithm Alpha LLC
Copyright (c) 2015-2021 Algorithm Alpha LLC, Andrey Oskin and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 16 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name = "Timestamps"
uuid = "0123453a-27b6-4e80-93fe-c2c00e33fefb"
authors = ["Andrey Oskin and contributors <https://github.com/JuliaQuant/Timestamps.jl/graphs/contributors>"]
version = "0.1.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

[compat]
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
Timestamps.jl
============
# Timestamps.jl

[![Build Status](https://travis-ci.org/JuliaQuant/Timestamps.jl.svg?branch=master)](https://travis-ci.org/JuliaQuant/Timestamps.jl)
[![Coverage Status](https://coveralls.io/repos/JuliaQuant/Timestamps.jl/badge.svg?branch=master)](https://coveralls.io/r/JuliaQuant/Timestamps.jl?branch=master)
[![Timestamps](http://pkg.julialang.org/badges/Timestamps_0.4.svg)](http://pkg.julialang.org/?pkg=Timestamps&ver=0.4)
| **Documentation** | **Build Status** | **JuliaHub** |
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaQuant.github.io/Timestamps.jl/stable)[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaQuant.github.io/Timestamps.jl/dev) | [![Build](https://github.com/JuliaQuant/Timestamps.jl/workflows/CI/badge.svg)](https://github.com/JuliaQuant/Timestamps.jl/actions)[![Coverage](https://codecov.io/gh/JuliaQuant/Timestamps.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaQuant/Timestamps.jl) | [![pkgeval](https://juliahub.com/docs/Timestamps/pkgeval.svg)](https://juliahub.com/ui/Packages/Timestamps/y83nC)[![version](https://juliahub.com/docs/Timestamps/version.svg)](https://juliahub.com/ui/Packages/Timestamps/y83nC) |

Timestamps provides the ability to work with time-based values without many of the constraints inherent in organizing
a time series. Multiple dates and values of different types can part of an `Array{Timestamp}`.
a time series. Multiple dates and values of different types can part of an `Vector{Timestamp}`.

Documentation is provided [here](http://timestampsjl.readthedocs.org/en/latest/).
*WARNING*: versions `0.1.*` are not following semver and may contain breaking changes. Use at your own risk.

Previous documentation can be found [here](http://timestampsjl.readthedocs.org/en/latest/).

## Installation

````julia
julia> using Pkg
julia> Pkg.add("Timestamps")
````
2 changes: 0 additions & 2 deletions REQUIRE

This file was deleted.

177 changes: 0 additions & 177 deletions docs/Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Timestamps = "0123453a-27b6-4e80-93fe-c2c00e33fefb"
24 changes: 24 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Timestamps
using Documenter

DocMeta.setdocmeta!(Timestamps, :DocTestSetup, :(using Timestamps); recursive=true)

makedocs(;
modules=[Timestamps],
authors="Andrey Oskin and contributors <https://github.com/JuliaQuant/Timestamps.jl/graphs/contributors>",
repo="https://github.com/JuliaQuant/Timestamps.jl/blob/{commit}{path}#{line}",
sitename="Timestamps.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://JuliaQuant.github.io/Timestamps.jl",
siteurl="https://github.com/JuliaQuant/Timestamps.jl",
assets=String[],
),
pages=[
"Home" => "index.md",
],
)

deploydocs(;
repo="github.com/JuliaQuant/Timestamps.jl",
)
2 changes: 0 additions & 2 deletions docs/requirements.txt

This file was deleted.

Loading

2 comments on commit 691e501

@Arkoniak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/33391

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 691e5018cd1339e4cdfb0eedc551e56c07b764a2
git push origin v0.1.0

Please sign in to comment.