File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,24 @@ jobs:
181181 run : |
182182 if [[ "${{ matrix.package_type }}" == "sdist" ]]; then
183183 pip${{ matrix.python }} install dist/${{needs.package_python3.outputs.sdist}}
184+
185+ # Extract sdist to access tests
186+ cd /tmp
187+ tar -xzf /github/workspace/dist/${{needs.package_python3.outputs.sdist}}
188+ cd python-minifier-*
189+
190+ # Install test dependencies and package
191+ pip${{ matrix.python }} install -r test/requirements.txt
192+
193+ # Run unit tests from sdist
194+ python${{ matrix.python }} -m pytest test/ -v
195+
184196 elif [[ "${{ matrix.python }}" == "2.7" ]]; then
185197 pip${{ matrix.python }} install dist/${{needs.package_python2.outputs.wheel}}
186198 else
187199 pip${{ matrix.python }} install dist/${{needs.package_python3.outputs.wheel}}
188200 fi
189-
201+
190202 pyminify --version
191203
192204 set -x
@@ -251,6 +263,8 @@ jobs:
251263 - package_python2
252264 - package_python3
253265 - documentation
266+ - test_package
267+ - test_typing
254268 permissions :
255269 contents : write
256270 outputs :
@@ -289,7 +303,7 @@ jobs:
289303 echo "Draft release created: $release_url"
290304
291305 # Extract the untagged release ID from the URL
292- untagged_id=$(echo "$ release_url" | sed 's|.* tag/||')
306+ untagged_id="${ release_url##*/ tag/}"
293307 echo "release_id=$untagged_id" >> "$GITHUB_OUTPUT"
294308
295309 - name : Download distribution artifacts
Original file line number Diff line number Diff line change 1+ include README.md
2+ include LICENSE
3+ include setup.py
4+ graft src/python_minifier
5+ graft test
6+ exclude .gitignore
7+ exclude tox.ini
8+ exclude tox-windows.ini
9+ exclude requirements-dev.txt
10+ exclude CHANGELOG.md
11+ prune .github
12+ prune .config
13+ prune docker
14+ prune docs
15+ prune corpus_test
16+ prune hypo_test
17+ prune typing_test
18+ prune xtest
19+ prune tox
20+ global-exclude *.pyc
21+ global-exclude __pycache__
You can’t perform that action at this time.
0 commit comments