-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (40 loc) · 1.18 KB
/
run_tests_octave.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
---
name: tests and coverage with octave
on:
push:
branches:
- main
pull_request:
branches: ['*']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests_octave:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Make jsonread for octave
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave
sudo apt-get -y install liboctave-dev
cd lib/JSONio
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
- name: MOxUnit Action
uses: joergbrech/moxunit-action@v1.3.0
with:
tests: tests # files or directories containing the MOxUnit test cases
src: src # directories to be added to the Octave search path before running the tests.
ext: tests/utils lib # External resources to add to the search put (excluded from coverage)
# data: # Directory for test data
with_coverage: true
cover_xml_file: coverage.xml
- name: Code coverage
uses: codecov/codecov-action@v4
with:
file: coverage.xml
flags: octave