Skip to content

Commit b5b18fa

Browse files
authored
Merge pull request #69 from theendlessriver13/add-tests
Add unit tests
2 parents 64d5699 + 9d70a8d commit b5b18fa

File tree

7 files changed

+503
-0
lines changed

7 files changed

+503
-0
lines changed

.coveragerc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2021 Jonas Kittner
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
[run]
5+
plugins = covdefaults
6+
7+
[report]
8+
fail_under = 90

.github/workflows/build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
5050
- name: Pre-commit hooks
5151
run: |
5252
pre-commit run --all-files
53+
- name: run tests
54+
run: |
55+
pip install --upgrade tox
56+
tox -e py
5357
- name: Build assets
5458
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
5559
- name: Archive bundles

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ bundles
1313
.eggs
1414
dist
1515
**/*.egg-info
16+
.tox
17+
.coverage

requirements-dev.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021 Jonas Kittner
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
covdefaults
5+
coverage
6+
freezegun
7+
pytest

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)