Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/code-coverage.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deviates somewhat from the setup used in vortex-auv, in that it here runs on pull_request, and the job name being coverage_build as opposed to call_reusable_workflow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I checked on some other repositories and they have their code coverage to run on pull requests also, so I just copied that, but should update vortex-auv too. And should change name true true

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Code Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
call_reusable_workflow:
uses: vortexntnu/vortex-ci/.github/workflows/reusable-code-coverage.yml@main
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/industrial-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Industrial CI

on:
push:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # Runs daily

jobs:
call_reusable_workflow:
uses: vortexntnu/vortex-ci/.github/workflows/reusable-industrial-ci.yml@main
with:
ros_repo: '["main", "testing"]'
8 changes: 0 additions & 8 deletions .releaserc

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Introduction
[![Industrial CI](https://github.com/vortexntnu/vortex-utils/actions/workflows/industrial-ci.yml/badge.svg)](https://github.com/vortexntnu/vortex-utils/actions/workflows/industrial-ci.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/vortexntnu/vortex-utils/main.svg)](https://results.pre-commit.ci/latest/github/vortexntnu/vortex-utils/main)
[![codecov](https://codecov.io/github/vortexntnu/vortex-utils/graph/badge.svg?token=d6D7d5xNdf)](https://codecov.io/github/vortexntnu/vortex-utils)

```
TODO: Write a simple description / introduction to the repository
Expand Down
15 changes: 15 additions & 0 deletions codecov.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test paths are not defined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed to work fine without needing to specify it, I think its only if the filestructure is a mess (like vortex-auv)

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
coverage:
precision: 2
round: down
status:
project:
default:
informational: true
flags:
- unittests
patch: off
fixes:
- "ros_ws/src/vortex_utils/::"
comment:
layout: "diff, flags, files"
behavior: default
3 changes: 3 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<buildtool_depend>ament_cmake_python</buildtool_depend>

<depend>eigen</depend>
<depend>python3-numpy</depend>
<depend>python3-scipy</depend>

<test_depend>ament_cmake_pytest</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down