diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index e74c706..2c759d0 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19cd784..75d2af2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 }} + diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index af15fa7..ca8940f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,14 +1,16 @@ 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 @@ -16,8 +18,11 @@ jobs: 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 + diff --git a/docs/Project.toml b/docs/Project.toml index 33ece10..6628d0b 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -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"