Skip to content

[pre-commit.ci] pre-commit autoupdate #166

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #166

---
name: 'Octave: test and coverage'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- dev
pull_request:
branches:
- '*'
jobs:
octave_tests:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave liboctave-dev
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Compile JSONio
run: |
cd lib/JSONio
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
- name: MOxUnit Action
uses: joergbrech/[email protected]
with:
tests: tests
src: src
ext: lib/JSONio tests/utils # External resources to add to the search put (excluded from coverage)
with_coverage: true
cover_xml_file: coverage.xml
- name: Code coverage
uses: codecov/codecov-action@v4
with:
file: coverage.xml
flags: ubuntu-latest_octave
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}