Skip to content

Commit

Permalink
Merge pull request #1 from slimgroup/mathoas
Browse files Browse the repository at this point in the history
CI
  • Loading branch information
mloubout committed Oct 5, 2022
2 parents d9fb74b + 90eeb37 commit d0e2e6d
Show file tree
Hide file tree
Showing 20 changed files with 346 additions and 794 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI-PhotoAcoustic

on:
# Trigger the workflow on push to master or pull request
# to be merged in master
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false

matrix:
version:
- '1.6'
- '1.7'
- '1.8'
os:
- ubuntu-latest
arch:
- x64

include:
- os: macos-latest
version: '1'
arch: x64

steps:
- name: Checkout PhotoAcoustic
uses: actions/checkout@v2

- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- name: Run tests
uses: julia-actions/julia-runtest@latest

- name: Install Examples packages
run: |
julia -e 'using Pkg;Pkg.add(["Statistics", "LinearAlgebra", "PyPlot", "IterativeSolvers"])'
- name: Rune examples
run: |
julia --color=yes --project examples/basic_photo_operator_2d.jl
julia --color=yes --project examples/basic_photo_operator_3d.jl
julia --color=yes --project examples/least_squares.jl
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Documentation

on:
push:
branches:
- main
tags: '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@latest

- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'

- name: Convert notebook
run: |
pip install --upgrade jupyter Pygments
jupyter nbconvert --to markdown --output-dir='../../docs/src' --output LearnedPrior
working-directory: examples/notebooks/

- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: julia --project=docs/ docs/make.jl
Loading

0 comments on commit d0e2e6d

Please sign in to comment.