Skip to content

Commit 67706d0

Browse files
committed
Implement interface for densities
1 parent f2bf6ef commit 67706d0

18 files changed

+486
-0
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# comment: false

.github/workflows/CompatHelper.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 00 * * *'
6+
push:
7+
branches:
8+
- actions/trigger/CompatHelper
9+
workflow_dispatch:
10+
jobs:
11+
CompatHelper:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Pkg.add("CompatHelper")
15+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16+
- name: CompatHelper.main()
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
20+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
- 'releases/**'
9+
tags: '*'
10+
pull_request:
11+
release:
12+
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ matrix.version == 'nightly' }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.0'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
- macOS-latest
28+
- windows-latest
29+
arch:
30+
- x64
31+
- x86
32+
exclude:
33+
# 32-bit Julia binaries are not available on macOS
34+
- os: macOS-latest
35+
arch: x86
36+
- os: windows-latest
37+
arch: x86
38+
- version: nightly
39+
arch: x86
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: julia-actions/setup-julia@latest
43+
with:
44+
version: ${{ matrix.version }}
45+
arch: ${{ matrix.arch }}
46+
- name: Cache artifacts
47+
uses: actions/cache@v2
48+
env:
49+
cache-name: cache-artifacts
50+
with:
51+
path: ~/.julia/artifacts
52+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
53+
restore-keys: |
54+
${{ runner.os }}-test-${{ env.cache-name }}-
55+
${{ runner.os }}-test-
56+
${{ runner.os }}-
57+
- uses: julia-actions/julia-buildpkg@latest
58+
env:
59+
PYTHON: 'Conda'
60+
- uses: julia-actions/julia-runtest@latest
61+
- uses: julia-actions/julia-processcoverage@v1
62+
- uses: codecov/codecov-action@v1
63+
with:
64+
file: lcov.info
65+
docs:
66+
name: Documentation
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v2
70+
- uses: julia-actions/setup-julia@latest
71+
with:
72+
version: '1'
73+
- name: Cache artifacts
74+
uses: actions/cache@v2
75+
env:
76+
cache-name: cache-artifacts
77+
with:
78+
path: ~/.julia/artifacts
79+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
80+
restore-keys: |
81+
${{ runner.os }}-test-${{ env.cache-name }}-
82+
${{ runner.os }}-test-
83+
${{ runner.os }}-
84+
- uses: julia-actions/julia-buildpkg@latest
85+
env:
86+
PYTHON: 'Conda'
87+
- uses: julia-actions/julia-docdeploy@latest
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
91+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
92+
GKSwstype: 'nul'

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
*.jl.cov
3+
*.jl.*.cov
4+
*.jl.mem
5+
.ipynb_checkpoints
6+
.vscode
7+
Manifest.toml

LICENSE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The DensityInterface.jl package is licensed under the MIT "Expat" License:
2+
3+
> Copyright (c) 2018:
4+
>
5+
> Oliver Schulz <[email protected]>
6+
>
7+
> Permission is hereby granted, free of charge, to any person obtaining a copy
8+
> of this software and associated documentation files (the "Software"), to deal
9+
> in the Software without restriction, including without limitation the rights
10+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
> copies of the Software, and to permit persons to whom the Software is
12+
> furnished to do so, subject to the following conditions:
13+
>
14+
> The above copyright notice and this permission notice shall be included in all
15+
> copies or substantial portions of the Software.
16+
>
17+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
> SOFTWARE.
24+
>

Project.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name = "DensityInterface"
2+
uuid = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
3+
version = "0.1.0"
4+
5+
[compat]
6+
julia = "1"
7+
8+
[extras]
9+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
12+
[targets]
13+
test = ["LinearAlgebra", "Test"]

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# DensityInterface.jl
2+
3+
[![Documentation for stable version](https://img.shields.io/badge/docs-stable-blue.svg)](https://oschulz.github.io/DensityInterface.jl/stable)
4+
[![Documentation for development version](https://img.shields.io/badge/docs-dev-blue.svg)](https://oschulz.github.io/DensityInterface.jl/dev)
5+
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
6+
[![Build Status](https://github.com/oschulz/DensityInterface.jl/workflows/CI/badge.svg?branch=master)](https://github.com/oschulz/DensityInterface.jl/actions?query=workflow%3ACI)
7+
[![Codecov](https://codecov.io/gh/oschulz/DensityInterface.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/oschulz/DensityInterface.jl)
8+
9+
This package defines an interface for mathematical/statistical densities in Julia. See the documentation for details.
10+
11+
12+
## Documentation
13+
14+
* [Documentation for stable version](https://oschulz.github.io/DensityInterface.jl/stable)
15+
* [Documentation for development version](https://oschulz.github.io/DensityInterface.jl/dev)

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
site/

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
4+
5+
[compat]
6+
Documenter = "~0.27"

0 commit comments

Comments
 (0)