Skip to content

Commit 5d2a50c

Browse files
committed
run tests in gha
1 parent 651ccda commit 5d2a50c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.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

tox.ini

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-FileCopyrightText: 2021 Jonas Kittner
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
[tox]
5+
envlist = py37
6+
7+
[testenv]
8+
deps = -rrequirements-dev.txt
9+
10+
commands =
11+
coverage erase
12+
coverage run -m pytest tests/
13+
coverage report

0 commit comments

Comments
 (0)