diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b5d87f..841d664 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,3 +45,22 @@ jobs: - uses: codecov/codecov-action@v1 with: file: lcov.info + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - 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: | + julia --project=docs -e ' + using Documenter: DocMeta, doctest + using MLJModelInterface + DocMeta.setdocmeta!(MLJModelInterface, :DocTestSetup, :(using MLJModelInterface); recursive=true) + doctest(MLJModelInterface)' \ No newline at end of file