Repository navigation
66 lines (57 loc) · 1.79 KB
/
Copy pathci.yml
File metadata and controls
66 lines (57 loc) · 1.79 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches: [master, develop]
pull_request:
jobs:
octave-tests:
runs-on: ubuntu-26.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Octave, Xvfb and packages
run: |
sudo apt-get update
sudo apt-get install -y octave octave-dev build-essential xvfb
octave --no-gui --eval "pkg install -forge datatypes; pkg install -forge statistics"
- name: Run plotly tests
working-directory: ${{ github.workspace }}/plotly/testing
env:
PLOTLY_ROOT: ${{ github.workspace }}/plotly
CI: true
run: |
xvfb-run -a octave --no-gui runplotlytests.m
matlab-tests:
name: matlab-tests (${{ matrix.release }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
release: [R2025a, R2026a]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v3
with:
release: ${{ matrix.release }}
cache: true
products: Statistics_and_Machine_Learning_Toolbox Symbolic_Math_Toolbox
- name: Run plotly tests
uses: matlab-actions/run-command@v3
env:
PLOTLY_ROOT: ${{ github.workspace }}/plotly
CI: true
with:
command: cd plotly/testing; runplotlytests
- name: Build gallery
if: ${{ !cancelled() }}
uses: matlab-actions/run-command@v3
with:
command: addpath(genpath('plotly')); mkdir('gallery'); makegallery('OutputFolder', 'gallery', 'Open', false);
- name: Upload gallery
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: gallery-${{ matrix.release }}
path: gallery/