Minor import and logging updates to troubleshoot logged warnings (#122) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
python -m pip install build wheel | |
- name: Install test dependencies | |
run: | | |
sudo apt install libssl-dev libfann-dev portaudio19-dev libpulse-dev | |
pip install ovos-core[all] | |
pip install pytest pytest-timeout pytest-cov adapt-parser~=0.5 | |
- name: Install repo | |
run: | | |
pip install . | |
- name: Generate coverage report | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
pytest --cov=./ovos_workshop --cov-report=xml | |
- 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 |