Skip to content

Commit

Permalink
Merge pull request #14 from avik-pal/ap/fix_test
Browse files Browse the repository at this point in the history
Run CI correctly
  • Loading branch information
ChrisRackauckas authored Dec 26, 2023
2 parents c62e60b + 2578bb6 commit 1a7480d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
54 changes: 28 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
- '1'
- '~1.10.0-0'
os:
- ubuntu-latest
threads:
Expand Down Expand Up @@ -44,28 +45,29 @@ jobs:
- uses: codecov/codecov-action@v3
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
env:
JULIA_PKG_SERVER: ""
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using Polyester
DocMeta.setdocmeta!(Polyester, :DocTestSetup, :(using Polyester); recursive=true)
doctest(Polyester)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: julia-actions/setup-julia@v1
# with:
# version: '1'
# - run: |
# julia --project=docs -e '
# using Pkg
# Pkg.develop(PackageSpec(path=pwd()))
# Pkg.instantiate()'
# env:
# JULIA_PKG_SERVER: ""
# - run: |
# julia --project=docs -e '
# using Documenter: DocMeta, doctest
# using Polyester
# DocMeta.setdocmeta!(Polyester, :DocTestSetup, :(using Polyester); recursive=true)
# doctest(Polyester)'
# - run: julia --project=docs docs/make.jl
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PolyesterForwardDiff"
uuid = "98d1487c-24ca-40b6-b7ab-df2af84e126b"
authors = ["The Chrises"]
version = "0.1.0"
version = "0.1.1"

[deps]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand All @@ -14,6 +14,8 @@ julia = "1.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Polyester = "f517fe37-dbe3-4b94-8317-1923a5111588"

[targets]
test = ["Test"]
test = ["Test", "Polyester", "ForwardDiff"]
9 changes: 5 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
using PolyesterForwardDiff
using Documenter

DocMeta.setdocmeta!(Polyester, :DocTestSetup, :(using PolyesterForwardDiff); recursive=true)
DocMeta.setdocmeta!(PolyesterForwardDiff, :DocTestSetup,
:(using PolyesterForwardDiff); recursive=true)

makedocs(;
modules=[PolyesterForwardDiff],
authors="Chris Elrod <[email protected]> and contributors",
repo="https://github.com/JuliaSIMD/PolyesterForwardDiff.jl/blob/{commit}{path}#{line}",
repo="https://github.com/JuliaDiff/PolyesterForwardDiff.jl/blob/{commit}{path}#{line}",
sitename="PolyesterForwardDiff.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://JuliaSIMD.github.io/PolyesterForwardDiff.jl",
canonical="https://juliadiff.org/PolyesterForwardDiff.jl",
assets=String[],
),
pages=[
Expand All @@ -19,5 +20,5 @@ makedocs(;
)

deploydocs(;
repo="github.com/JuliaSIMD/PolyesterForwardDiff.jl",
repo="github.com/JuliaDiff/PolyesterForwardDiff.jl",
)

0 comments on commit 1a7480d

Please sign in to comment.