Fix python dependency issues with Python 3.12 and add to docs #877
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
jobs: | |
docs-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: "1" | |
- name: Cache artifacts | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: ~/.julia/artifacts | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- name: Install dependencies | |
env: | |
PYTHON: "" | |
run: | | |
julia --color=yes --project -e 'using Pkg; Pkg.instantiate()' | |
julia --project -e 'using Conda; Conda.add("scipy=1.14.1")' | |
julia --color=yes --project -e 'using Conda; Conda.add("scikit-learn=1.5.1")' | |
julia --color=yes --project=docs/ -e 'using Pkg; Pkg.instantiate()' | |
julia --color=yes --project=docs/ -e 'using Pkg; Pkg.precompile()' | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JULIA_PROJECT: "docs/" | |
run: julia --color=yes --project=docs/ docs/make.jl |