Skip to content

Commit

Permalink
Merge pull request #21 from #9-CI-Round3
Browse files Browse the repository at this point in the history
[#9] CI round three attempt one;
  • Loading branch information
the-other-james authored Aug 15, 2023
2 parents ceba604 + 40e287d commit 7fceac2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit test run

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements_pip.txt ]; then pip install -r requirements_pip.txt; fi
- name: Test with pytest
run: python -m coverage run --branch --source=onair -m pytest ./test/
- name: Coverage report
run: coverage report
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![Build](https://github.com/nasa/OnAIR/actions/workflows/unit-test.yml/badge.svg)
[![CodeCov](https://codecov.io/gh/nasa/OnAIR/branch/main/graph/badge.svg?token=L0WVOTD5X9)](https://codecov.io/gh/nasa/OnAIR)

# The On-board Artificial Intelligence Research (OnAIR) Platform

The On-board Artificial Intelligence Research (OnAIR) Platform is a framework that enables AI algorithms written in Python to interact with NASA's [cFS](https://github.com/nasa/cFS).
Expand Down

0 comments on commit 7fceac2

Please sign in to comment.