-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.04 KB
/
octave_test_and_coverage.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
---
name: 'Octave: test and coverage'
on:
push:
branches: [main]
pull_request:
branches: ['*']
# cancel previous run on that branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: MOxUnit Action
uses: joergbrech/[email protected]
with:
tests: tests
src: src
with_coverage: true
cover_xml_file: coverage.xml
- name: Code coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: coverage.xml # optional
flags: octave # optional
name: codecov-umbrella # optional
fail_ci_if_error: false # optional (default = false)