|
@@ -58,6 +58,26 @@ jobs:
|
|
|
with:
|
|
|
path: ./dist/*.tar.gz
|
|
|
|
|
|
+ test-sdist:
|
|
|
+ needs:
|
|
|
+ - build-sdist
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/setup-python@v5
|
|
|
+ - name: Install dependencies
|
|
|
+ run: |
|
|
|
+ python -m pip install --upgrade pip
|
|
|
+ pip install twine
|
|
|
+ - name: Download sdist
|
|
|
+ uses: actions/download-artifact@v2
|
|
|
+ with:
|
|
|
+ name: artifact
|
|
|
+ path: dist
|
|
|
+ - name: Test sdist
|
|
|
+ run: twine check dist/*
|
|
|
+ - name: Test installation from sdist
|
|
|
+ run: pip install dist/*.tar.gz
|
|
|
+
|
|
|
publish:
|
|
|
runs-on: ubuntu-latest
|
|
|
needs:
|