Resolve R2 Allocation test #296
Workflow file for this run
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: demos | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
version: | |
- '1' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- 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: Setup TeX Live | |
uses: teatimeguest/setup-texlive-action@v2 | |
with: | |
packages: >- | |
scheme-minimal | |
latex-bin | |
pgf | |
pgfplots | |
standalone | |
xkeyval | |
luatex85 | |
infwarerr | |
ltxcmds | |
epstopdf-pkg | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
- name: Develop package | |
run: | | |
using Pkg | |
Pkg.develop(path = ".") | |
Pkg.instantiate() | |
shell: julia --project="examples" --color=yes {0} | |
- name: Run BPDN demo | |
run: | | |
pkg_path = dirname(Base.find_package("RegularizedOptimization")) | |
include(joinpath(pkg_path, "..", "examples", "demo-bpdn.jl")) | |
shell: julia --project="examples" --color=yes {0} | |
- name: Run contrained BPDN demo | |
run: | | |
pkg_path = dirname(Base.find_package("RegularizedOptimization")) | |
include(joinpath(pkg_path, "..", "examples", "demo-bpdn-constr.jl")) | |
shell: julia --project="examples" --color=yes {0} | |
- name: Run FH demo | |
run: | | |
pkg_path = dirname(Base.find_package("RegularizedOptimization")) | |
include(joinpath(pkg_path, "..", "examples", "demo-fh.jl")) | |
shell: julia --project="examples" --color=yes {0} | |
- name: Run NNMF demo | |
run: | | |
pkg_path = dirname(Base.find_package("RegularizedOptimization")) | |
include(joinpath(pkg_path, "..", "examples", "demo-nnmf-constr.jl")) | |
shell: julia --project="examples" --color=yes {0} | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: demos-results | |
path: ${{ github.workspace }}/*.pdf |