Skip to content

Commit

Permalink
Create coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Feb 8, 2024
1 parent 90324f8 commit 068ef6a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run CodeCov
on:
push:
branches:
- dev
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
env:
PYTHON: '3.9'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev libssl-dev
python -m pip install build wheel
- name: Install test dependencies
run: |
pip install -r test/requirements.txt
- name: Install core repo
run: |
pip install -e .
- name: Generate coverage report
run: |
pytest --cov=ovos_gui --cov-report xml test/unittests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
fail_ci_if_error: true
files: ./coverage.xml,!./cache
flags: unittests
name: codecov-umbrella
verbose: true

0 comments on commit 068ef6a

Please sign in to comment.