Skip to content

Commit e14b721

Browse files
committed
workflows: Re-run tests in an unpacked sdist
This verifies that the sdist works correctly, and contains everything necessary to build, test and install. Signed-off-by: Simon McVittie <smcv@debian.org>
1 parent 3f806fa commit e14b721

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,11 @@ jobs:
3737
- name: Run tests
3838
run: |
3939
python -m pytest
40+
- name: Test source distribution
41+
run: |
42+
rm -fr dist
43+
python setup.py sdist
44+
tar -C dist -axvf dist/*.tar.gz
45+
( cd dist/*/; python setup.py build )
46+
( cd dist/*/; python -m pytest )
47+
( cd dist/*/; python setup.py install --user )

0 commit comments

Comments
 (0)