Develop #67
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: | |
- master | |
tags: '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: '1.9.2' | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/FlavellBase.jl | |
path: ./FlavellBase.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/TotalVariation.jl | |
path: ./TotalVariation.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/SegmentationStats.jl | |
path: ./SegmentationStats.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/GPUFilter.jl | |
path: ./GPUFilter.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/NRRDIO.jl | |
path: ./NRRDIO.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/FFTRegGPU.jl | |
path: ./FFTRegGPU.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/ImageDataIO.jl | |
path: ./ImageDataIO.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/UNet2D.jl | |
path: ./UNet2D.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/WormCurveFinder.jl | |
path: ./WormCurveFinder.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/Clustering.jl | |
path: ./Clustering.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/WormFeatureDetector.jl | |
path: ./WormFeatureDetector.jl | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- uses: actions/checkout@master | |
with: | |
repository: flavell-lab/unet2d | |
path: ./unet2d | |
token: ${{ secrets.GOLDENRATIO1618_ACCESS_TOKEN }} | |
- name: Install Julia Python environment | |
run: julia --project=docs/ -e 'using Pkg; | |
Pkg.add("PyCall"); | |
ENV["PYTHON"] = ""; | |
Pkg.build("PyCall"); | |
Pkg.add("PyPlot"); | |
Pkg.build("PyPlot");' | |
- name: Setup python packages | |
run: ~/.julia/conda/3/x86_64/bin/pip install torch==1.13.1 torchvision torchaudio; | |
cd unet2d; | |
~/.julia/conda/3/x86_64/bin/pip install . | |
- name: Install packages | |
run: julia --project=docs/ -e 'using Pkg; | |
Pkg.add(PackageSpec(path="./FlavellBase.jl")); | |
Pkg.add(PackageSpec(path="./TotalVariation.jl")); | |
Pkg.add(PackageSpec(path="./SegmentationStats.jl")); | |
Pkg.add(PackageSpec(path="./GPUFilter.jl")); | |
Pkg.add(PackageSpec(path="./NRRDIO.jl")); | |
Pkg.add(PackageSpec(path="./FFTRegGPU.jl")); | |
Pkg.add(PackageSpec(path="./ImageDataIO.jl")); | |
Pkg.add(PackageSpec(path="./UNet2D.jl")); | |
Pkg.add(PackageSpec(path="./WormCurveFinder.jl")); | |
Pkg.add(PackageSpec(path="./Clustering.jl")); | |
Pkg.add(PackageSpec(path="./WormFeatureDetector.jl")); | |
Pkg.add(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | |
run: julia --project=docs/ docs/make.jl |