Skip to content

Commit

Permalink
codecov fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 30, 2023
1 parent 2fa79f9 commit cab4f2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,26 @@ jobs:
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev
sudo apt install python3-dev libssl-dev libfann-dev portaudio19-dev libpulse-dev
python -m pip install build wheel
- name: Install repo
- name: Install core repo
run: |
pip install -e .[mycroft,deprecated]
- name: Install test dependencies
run: |
sudo apt install libssl-dev libfann-dev portaudio19-dev libpulse-dev
pip install -r requirements/tests.txt
pip install ./test/unittests/common_query/ovos_tskill_fakewiki
pip install ./test/end2end/session/skill-ovos-hello-world
- name: Generate coverage report
run: |
pytest --cov=./ovos_core --cov-report=xml
pytest --cov=ovos_core --cov-report xml test/unittests
pytest --cov-append --cov=ovos_core --cov-report xml test/end2end
pytest --cov-append --cov=ovos_core --cov-report xml test/integrationtests
- name: Generate coverage report with padatious
run: |
sudo apt install libfann-dev
pip install .[lgpl]
pytest --cov-append --cov=ovos_core --cov-report xml test/unittests/skills
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# (for an example, see OVOS Skill Manager's workflow)
- name: Run full core unittests
run: |
pytest --cov=ovos_core --cov-report xml test/end2end
pytest --cov-append --cov=ovos_core --cov-report xml test/end2end
- name: Run integration tests
run: |
pytest --cov-append --cov=ovos_core --cov-report xml test/integrationtests
Expand Down

0 comments on commit cab4f2b

Please sign in to comment.