Skip to content

ENH: cleanup of line_covered, make sure strings are not truncated (mo… #37

ENH: cleanup of line_covered, make sure strings are not truncated (mo…

ENH: cleanup of line_covered, make sure strings are not truncated (mo… #37

Workflow file for this run

---
name: CI octave
# - Installs
# - octave
# - MOcov
# - checks out MOXunit
# - Runs tests
# - If tests pass, uploads coverage to codecov
# Controls when the action will run.
# Triggers the workflow:
# - on push for the master branch
# - on pull request for all branches
on:
push:
branches: [master]
pull_request:
branches: ['*']
# cancel previous runs on the same branch / PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
OCTFLAGS: --no-gui --no-window-system --silent
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Moxunit
run: git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
- name: Install Octave
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave octave-dev
make -C MOxUnit install
make install
- name: Octave version
run: octave --version
- name: Run tests
run: octave $OCTFLAGS --eval "moxunit_runtests tests -verbose -recursive -with_coverage -cover tests/regression/src -cover_xml_file coverage.xml;
exit(double(~ans));"