Skip to content

Commit

Permalink
Merge pull request #156 from basnijholt/coveralls
Browse files Browse the repository at this point in the history
fix coveralls
  • Loading branch information
basnijholt committed Sep 8, 2020
2 parents aaa66dc + 12c99db commit f38d4d7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ source = miflora
omit =
miflora/backends/bluepy.py
miflora/backends/pygatt.py
miflora/_static_version.py
miflora/_version.py

[report]
exclude_lines =
Expand Down
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo_token: GA2OyGA13fanrPLLHl5zB5MMNRb15z3wY
parallel: true
2 changes: 2 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tox
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest-timeout
pylint==2.6.0
flake8
pexpect
coveralls
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ python =
[testenv]
# only run unit tests as they do not need additional hardware
passenv = GITHUB_*
deps = -rrequirements.txt
-rrequirements-test.txt
commands = pytest --cov=miflora --timeout=10 test/unit_tests
deps =
-rrequirements.txt
-rrequirements-test.txt
commands =
pytest --cov=miflora --timeout=10 test/unit_tests
coveralls

[testenv:noimport]
# run tests without installing any Bluetooth libraries
Expand Down

0 comments on commit f38d4d7

Please sign in to comment.