Skip to content

Commit 9647c66

Browse files
author
dsweber2
committed
update the docs and CI/CD to github actions, getMeanFreq
1 parent 4ecfae5 commit 9647c66

File tree

9 files changed

+959
-12
lines changed

9 files changed

+959
-12
lines changed

.github/workflows/CI.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Generated using the wonderful PkgTemplates.jl and altered slightly
2+
name: CI
3+
on:
4+
workflow_dispatch: #get a button to trigger it by hand
5+
push:
6+
paths: # run CI/CD when the tests change, the dependencies change, or the version changes
7+
- test/runtests.jl
8+
- Project.toml
9+
tags: '*'
10+
pull_request: # run when pull requests are made
11+
paths:
12+
- src/*
13+
- test/runtests.jl
14+
- Manifest.toml
15+
- Project.toml
16+
jobs:
17+
test:
18+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
version:
24+
- '1.6'
25+
- 'nightly'
26+
os:
27+
- ubuntu-latest
28+
- macOS-latest
29+
arch:
30+
- x64
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: julia-actions/setup-julia@v1
34+
with:
35+
version: ${{ matrix.version }}
36+
arch: ${{ matrix.arch }}
37+
- uses: actions/cache@v1
38+
env:
39+
cache-name: cache-artifacts
40+
with:
41+
path: ~/.julia/artifacts
42+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
43+
restore-keys: |
44+
${{ runner.os }}-test-${{ env.cache-name }}-
45+
${{ runner.os }}-test-
46+
${{ runner.os }}-
47+
- uses: julia-actions/julia-buildpkg@v1
48+
- uses: julia-actions/julia-runtest@v1
49+
- uses: julia-actions/julia-processcoverage@v1
50+
- uses: codecov/codecov-action@v1
51+
with:
52+
file: lcov.info

.github/workflows/docsBuild.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Docs
2+
on:
3+
workflow_dispatch:
4+
push:
5+
paths: # rebuild the docs when the version changes or the docs change
6+
- docs/*
7+
- Project.toml
8+
pull_request: # run when pull requests are made
9+
paths:
10+
- docs/*
11+
- Project.toml
12+
jobs:
13+
docs:
14+
name: Documentation
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: julia-actions/setup-julia@v1
19+
with:
20+
version: '1.6'
21+
- name: Install dependencies
22+
run: |
23+
sudo apt install libxt6 libxrender1 libxext6 libgl1-mesa-glx libqt5widgets5
24+
- run: |
25+
julia --project=docs -e '
26+
using Pkg
27+
Pkg.instantiate()
28+
Pkg.develop(PackageSpec(path=pwd()))
29+
Pkg.instantiate()'
30+
- name: Build and deploy
31+
- run: julia --project=docs docs/make.jl
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)