Skip to content

Commit

Permalink
chore(dependencies): Update test dependencies
Browse files Browse the repository at this point in the history
Update codecov action
Remove pytest-cov
  • Loading branch information
DarwinsBuddy committed Jul 12, 2024
1 parent 45ebc2f commit 9659125
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
tests/*
1 change: 0 additions & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
codecov:
token: ${{secrets.CODECOV_TOKEN}}
require_ci_to_pass: true
max_report_age: false
coverage:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
flake8 custom_components/wnsm --count --exit-zero --max-complexity=10 --statistics --config tests/setup.cfg
- name: Test with pytest
run: |
pytest --cov=wnsm tests --cov-report html --cov-report xml --cov-report term
coverage run -m pytest && coverage report -m && coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
14 changes: 8 additions & 6 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pytest==7.3.1
pytest-cov==4.1.0
homeassistant==2023.10.5
pytest-homeassistant-custom-component==0.13.68
pytest==8.0.2
pytest_mock==3.14.0
coverage==7.4.3
requests-mock==1.11.0
requests
homeassistant==2024.3.3
pytest-homeassistant-custom-component==0.13.109
black>=22.12.0
pylint==3.0.2
requests-mock==1.11.0
apipkg==3.0.2
importlib-resources==6.1.0
lxml==4.9.3
lxml==5.2.2
flake8==6.1.0

0 comments on commit 9659125

Please sign in to comment.