Skip to content

Commit

Permalink
Merge pull request #239 from JuliaClimate/Balinus-patch-doc
Browse files Browse the repository at this point in the history
Update Project.toml
  • Loading branch information
Balinus authored Jun 19, 2023
2 parents b592aad + 7b6e30e commit 471d502
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 42 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: pip3 install scipy
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
53 changes: 20 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,25 @@ jobs:
fail-fast: false
matrix:
version:
- '1'
- '1'
os:
- ubuntu-latest
- macos-latest
- windows-latest
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Set ENV Variables for 🐍 📞
run: echo ENV["PYTHON"] = "${{ env.pythonLocation }}/bin/python" >> $GITHUB_ENV

- name: Install dependencies 🔧
run: |
python -m pip install --upgrade pip
pip install scipy
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -37,37 +47,14 @@ jobs:
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON : "${{ env.pythonLocation }}/bin/python"

- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- 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'
# - run: |
# git config --global user.name name
# git config --global user.email email
# git config --global github.user username
# - run: |
# julia --project=docs -e '
# using Pkg
# Pkg.develop(PackageSpec(path=pwd()))
# Pkg.instantiate()
# Pkg.build()'
# - run: |
# julia --project=docs -e '
# using Documenter: doctest
# using NCDatasets
# doctest(NCDatasets)'
# - run: julia --project=docs docs/make.jl
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

19 changes: 12 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: Documentation

on:
push:
branches:
- master
- master # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
docs:
name: Documenter
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- run: pip3 install scipy
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@releases/v1
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

4 changes: 2 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
Documenter = "0.20, 0.21, 0.22, 0.23, 0.24"
PyCall = "1.91"
Documenter = "0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27"
PyCall = "1"

0 comments on commit 471d502

Please sign in to comment.