Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- main
tags: '*'
pull_request:
branches:
- main
- develop
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
Expand All @@ -18,11 +21,19 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6' # Replace this with the minimum Julia version that your package supports.
- '1'
os:
- ubuntu-latest
arch:
- x64
include:
- os: windows-latest
version: '1'
arch: x64
- os: macOS-latest
version: '1'
arch: x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand All @@ -43,16 +54,21 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
# Run doctests
version: '1.6'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- name: Run doctests
run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using DataWorkstation
DocMeta.setdocmeta!(DataWorkstation, :DocTestSetup, :(using DataWorkstation); recursive=true)
doctest(DataWorkstation)'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl
4 changes: 4 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"

[compat]
DataFrames = "1"
CSV = "0.10"
BSON = "0.3"
JDF = "0.5"
julia = "1.6.5"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Building the documentation

The documentation is built using the following command:

```julia
```bash
julia --project=. --color=yes make.jl
```

Expand Down
13 changes: 8 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ DocMeta.setdocmeta!(
makedocs(;
modules = [DataWorkstation],
authors = "Leandro Ferrado <leferrad@gmail.com> and contributors",
repo = "https://github.com/leferrad/DataWorkstation.jl/blob/{commit}{path}#{line}",
sitename = "DataWorkstation.jl",
format = Documenter.HTML(;
prettyurls = get(ENV, "CI", "false") == "true",
prettyurls = get(ENV, "CI", nothing) == "true",
canonical = "https://leferrad.github.io/DataWorkstation.jl",
assets = String[],
),
pages = ["Home" => "index.md"],
pages = [
"Introduction" => ["index.md",],
# "User Guide" => ["basics.md", "quick_example.md"],
# "API" => ["api_reference.md"],
],
)

deploydocs(;
repo = "github.com/leferrad/DataWorkstation.jl",
devbranch = "develop",
repo = "github.com/leferrad/DataWorkstation.jl.git",
target = "build",
push_preview = true,
)