diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c0c1ac..05fee8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,21 +41,13 @@ jobs: run: | python -m pip install --upgrade pip pip install . - - name: Run1 + - name: Smoke test run: | + python -c "from ipspot import *" + python -m ipspot --version + python -m ipspot --info ipspot --version - - name: Run2 - run: | ipspot --info - - name: Run3 - run: | - ipspot - - name: Run4 - run: | - ipspot --no-geo --max-retries=5 --retry-delay=3 - - name: Run5 - run: | - ipspot --timeout=15 - name: Install dev-requirements run: | pip install --upgrade --upgrade-strategy=only-if-needed -r requirements-dev.txt @@ -80,6 +72,24 @@ jobs: run: | python otherfiles/version_check.py if: matrix.python-version == env.TEST_PYTHON_VERSION + - name: Build package + run: | + python -m build + - name: Check package metadata + run: | + twine check dist/* + - name: Wheel smoke test + shell: bash + run: | + pip uninstall -y ipspot + pip install dist/*.whl + mkdir wheel_test + cd wheel_test + python -c "from ipspot import *" + python -m ipspot --version + python -m ipspot --info + ipspot --version + ipspot --info - name: Other tests run: | python -m vulture ipspot/ setup.py --min-confidence 65 --exclude=__init__.py --sort-by-size diff --git a/CHANGELOG.md b/CHANGELOG.md index c9cd9a7..0819f3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - CLI messages updated - CLI modified - Dependencies structure modified +- Test system modified ## [0.8] - 2026-02-05 ### Added - Support [wtfismyip.com](https://wtfismyip.com/json) IPv6 API diff --git a/requirements-dev.txt b/requirements-dev.txt index 0b02ecd..cbb8e78 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,5 @@ bandit>=1.5.1 pydocstyle>=6.3.0 pytest>=4.3.1 pytest-cov>=2.6.1 +build>=1.1.1 +twine>=4.0.2