Skip to content

Commit

Permalink
make test discovery work with unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
sibson committed Dec 22, 2022
1 parent a26b4da commit c24f909
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run Unit Tests
run: |
python -m unittest tests/unit/*.py
python -m unittest discover tests/unit
11 changes: 8 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.DEFAULT: help

VERSION_FILE?=vncdotool/__init__.py
PYTHON?=.venv/bin/python


help:
@echo "test: run tests"
Expand All @@ -21,7 +23,6 @@ version-%:
git ci $(VERSION_FILE) -m"bump version to $*"

release: release-test release-tag upload

release-test: test

release-tag: VERSION:=$(shell python setup.py --version)
Expand All @@ -30,11 +31,15 @@ release-tag:
git push --tags

upload:
python setup.py sdist
$(PYTHON) setup.py sdist
twine upload dist/$(shell python setup.py --fullname).*

docs:
$(MAKE) -C docs/ html

venv: $(PYTHON)
.venv: requirements.txt requirements-dev.txt
python3 -m virtualenv .venv

test:
nosetests tests/unit
$(PYTHON) -m unittest discover tests/unit

0 comments on commit c24f909

Please sign in to comment.