From 77dde1ad4accb30eba1f51b77cbce603afbec15a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 19 May 2020 15:55:27 +0100 Subject: [PATCH] workflows: Re-run tests in an unpacked sdist This is analogous to Autotools make distcheck or Meson ninja dist. It verifies that the sdist works correctly, and contains everything necessary to build, test and install. Signed-off-by: Simon McVittie --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 16d4e27..7375991 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,3 +37,11 @@ jobs: - name: Run tests run: | python -m pytest + - name: Test source distribution + run: | + rm -fr dist + python setup.py sdist + tar -C dist -axvf dist/*.tar.gz + ( cd dist/*/; python setup.py build ) + ( cd dist/*/; python -m pytest ) + ( cd dist/*/; python setup.py install --user )