-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (45 loc) · 1.86 KB
/
automatic-testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This is a basic workflow to help you get started with Actions
name: tests
# Controls when the action will run.
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
#octave:
# # The type of runner that the job will run on
# runs-on: ubuntu-latest
# strategy:
# matrix:
# compression: [ qr, svd ]
# format: [ hodlr, hss, halr ]
# env:
# OCTAVE: "flatpak run org.octave.Octave"
# steps:
# - uses: actions/checkout@v2
# - name: Install GNU/Octave
# run: |
# sudo apt-get update
# sudo apt-get -y install flatpak
# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# sudo flatpak install -y org.octave.Octave
# ${OCTAVE} --eval "pkg install -forge io"
# ${OCTAVE} --eval "pkg install -forge statistics"
# ${OCTAVE} --eval "pkg install -forge control"
# echo "pkg load control" >> ~/.octaverc
# echo "pkg load statistics" >> ~/.octaverc
# - name: Run tests (Format ${{ matrix.format }} - Compression ${{ matrix.compression }})
# run: |
# ${OCTAVE} --no-gui --eval "addpath tests; ${{ matrix.format }}option('compression', '${{ matrix.compression }}'); ${{ matrix.format }}_RunAllTests;"
matlab:
runs-on: ubuntu-latest
strategy:
matrix:
compression: [ qr, svd ]
format: [ hodlr, hss, halr ]
steps:
- uses: actions/checkout@v2
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v0
- name: Run tests (Format ${{ matrix.format }} - Compression ${{ matrix.compression }})
uses: matlab-actions/run-command@v0
with:
command: "addpath tests; ${{ matrix.format }}option('compression', '${{ matrix.compression }}'); ${{ matrix.format }}_RunAllTests"