Skip to content

Commit aa937a9

Browse files
authored
Enable all keyword arguments and extend documentation (#2)
1 parent f5509cb commit aa937a9

File tree

7 files changed

+275
-94
lines changed

7 files changed

+275
-94
lines changed

.github/workflows/CI.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
version:
1717
- '1.0'
1818
- '1'
19-
- 'nightly'
2019
os:
2120
- ubuntu-latest
2221
- macOS-latest
@@ -62,6 +61,8 @@ jobs:
6261
env:
6362
PYTHON: ${{ matrix.python }}
6463
- uses: julia-actions/julia-runtest@v1
64+
with:
65+
coverage: ${{ matrix.coverage || false }}
6566
env:
6667
PYTHON: ${{ matrix.python }}
6768
- uses: julia-actions/julia-processcoverage@v1

.github/workflows/JuliaNightly.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: JuliaNightly
2+
3+
# Nightly Version of Julia. Runs on PRs and pushes to `master`,
4+
# but seperate workflow to `CI` to avoid failure notifications.
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
12+
jobs:
13+
test:
14+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ (matrix.python && 'system Python') || 'conda' }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- 'nightly'
21+
os:
22+
- ubuntu-latest
23+
- macOS-latest
24+
- windows-latest
25+
arch:
26+
- x64
27+
python:
28+
- ''
29+
- python
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Install python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: '3.x'
36+
architecture: ${{ matrix.arch }}
37+
if: matrix.python
38+
# Limitation of pip: https://pythonot.github.io/index.html#pip-installation
39+
- run: python -m pip install cython numpy
40+
if: matrix.python
41+
- run: python -m pip install pot
42+
if: matrix.python
43+
- uses: julia-actions/setup-julia@v1
44+
with:
45+
version: ${{ matrix.version }}
46+
arch: ${{ matrix.arch }}
47+
- uses: actions/cache@v1
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@v1
58+
env:
59+
PYTHON: ${{ matrix.python }}
60+
- uses: julia-actions/julia-runtest@v1
61+
with:
62+
coverage: ${{ matrix.coverage }}
63+
env:
64+
PYTHON: ${{ matrix.python }}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://devmotion.github.io/POT.jl/stable)
66
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://devmotion.github.io/POT.jl/dev)
77
[![Build Status](https://github.com/devmotion/POT.jl/workflows/CI/badge.svg?branch=main)](https://github.com/devmotion/POT.jl/actions?query=workflow%3ACI+branch%3Amain)
8+
[![Build Status (Julia nightly)](https://github.com/devmotion/POT.jl/workflows/JuliaNightly/badge.svg?branch=main)](https://github.com/devmotion/POT.jl/actions?query=workflow%3AJuliaNightly+branch%3Amain)
89
[![Coverage](https://codecov.io/gh/devmotion/POT.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/devmotion/POT.jl)
910
[![Coverage](https://coveralls.io/repos/github/devmotion/POT.jl/badge.svg?branch=main)](https://coveralls.io/github/devmotion/POT.jl?branch=main)
1011
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)

docs/make.jl

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ makedocs(;
2222
pages=["Home" => "index.md", "api.md"],
2323
strict=true,
2424
checkdocs=:exports,
25+
doctestfilters=[
26+
r"{([a-zA-Z0-9]+,\s?)+[a-zA-Z0-9]+}",
27+
r"(Array{[a-zA-Z0-9]+,\s?1}|Vector{[a-zA-Z0-9]+})",
28+
r"(Array{[a-zA-Z0-9]+,\s?2}|Matrix{[a-zA-Z0-9]+})",
29+
],
2530
)
2631

2732
deploydocs(; repo="github.com/devmotion/POT.jl", push_preview=true, devbranch="main")

0 commit comments

Comments
 (0)