Add basic wheel test to ci

This commit is contained in:
Jon Grace-Cox
2022-08-09 05:55:26 -07:00
parent e368d0f097
commit 9eb768c96b
2 changed files with 8 additions and 0 deletions

View File

@@ -19,6 +19,12 @@ script:
pre-commit run --all;
fi
- pytest --doctest-modules --cov=anybadge --cov-report html:htmlcov anybadge tests
- python setup.py bdist_wheel
- ls -l dist
- WHEEL=$(readlink -f "dist/anybadge-*.whl") && echo "$WHEEL"
- mkdir tmp && cd tmp
- pip install "$WHEEL"
- anybadge -l label -v value
before_deploy:
- sed -i "s/^version = .*/version = __version__ = \"$TRAVIS_TAG\"/" anybadge/__init__.py
deploy:

View File

@@ -8,3 +8,5 @@
* [ ] Add CI to push server to Docker hub
* [ ] Support common badge server URL structure
* [ ] Documentation for all docker bits
* [ ] Update PyPi deployment to use API tokens
* [ ] Update test code to operate against wheel file instead of package directory