Skip to content

Commit 9103a30

Browse files
authored
Merge pull request #5 from human-nature-lab/dev
Dev
2 parents cf640a4 + 6031f78 commit 9103a30

36 files changed

Lines changed: 4918 additions & 428 deletions

.JuliaFormatter.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
indent = 2
2+
margin = 92
3+
always_for_in = false
4+
whitespace_typedefs = true
5+
whitespace_ops_in_indices = true
6+
remove_extra_newlines = true
7+
import_to_using = false
8+
pipe_to_function_call = false
9+
short_to_long_function_def = false
10+
always_use_return = false

.github/workflows/CI.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
julia-version: ['1.6', '1.10', '1.11']
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: julia-actions/setup-julia@v2
22+
with:
23+
version: ${{ matrix.julia-version }}
24+
25+
- uses: julia-actions/cache@v2
26+
27+
- uses: julia-actions/julia-buildpkg@v1
28+
29+
- uses: julia-actions/julia-runtest@v1
30+
env:
31+
JULIA_NUM_THREADS: 2
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
concurrency:
11+
# Skip intermediate builds: always.
12+
# Cancel intermediate builds: only if it is a pull request build.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+
jobs:
17+
docs:
18+
name: Documentation
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
22+
statuses: write
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: '1.11'
28+
- uses: julia-actions/cache@v2
29+
- name: Configure doc environment
30+
shell: julia --project=docs --color=yes {0}
31+
run: |
32+
using Pkg
33+
Pkg.develop(PackageSpec(path=pwd()))
34+
Pkg.instantiate()
35+
- name: Build and deploy docs
36+
shell: julia --project=docs --color=yes {0}
37+
run: |
38+
using Documenter: DocMeta, doctest
39+
using TSCSMethods
40+
DocMeta.setdocmeta!(TSCSMethods, :DocTestSetup, :(using TSCSMethods); recursive=true)
41+
doctest(TSCSMethods)
42+
include("docs/make.jl")
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/Format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Format Check
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: julia-actions/setup-julia@v2
14+
with:
15+
version: '1.11'
16+
- name: Install JuliaFormatter
17+
run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
18+
- name: Check format
19+
run: julia -e 'using JuliaFormatter; exit(format(".", verbose=true) ? 0 : 1)'

0 commit comments

Comments
 (0)