Skip to content

Commit 158af6b

Browse files
Smoke Test (#192)
* fix : add smoke tests * fix : add twine/build to requirements-dev.txt
1 parent 4812a6a commit 158af6b

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install .
39+
- name: Smoke test
40+
run: |
41+
python -c "from xnum import *"
3942
- name: Dev requirements installation
4043
run: |
4144
pip install --upgrade --upgrade-strategy=only-if-needed -r requirements-dev.txt
@@ -62,3 +65,17 @@ jobs:
6265
run: |
6366
python otherfiles/version_check.py
6467
if: matrix.python-version == env.TEST_PYTHON_VERSION
68+
- name: Build package
69+
run: |
70+
python -m build
71+
- name: Check package metadata
72+
run: |
73+
twine check dist/*
74+
- name: Wheel smoke test
75+
shell: bash
76+
run: |
77+
pip uninstall -y xnum
78+
pip install dist/*.whl
79+
mkdir wheel_test
80+
cd wheel_test
81+
python -c "from xnum import *"

requirements-dev.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ vulture>=1.0
33
bandit>=1.5.1
44
pydocstyle>=6.3.0
55
pytest>=4.3.1
6-
pytest-cov>=2.6.1
6+
pytest-cov>=2.6.1
7+
build>=1.1.1
8+
twine>=4.0.2

0 commit comments

Comments
 (0)