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:
181
181
run : |
182
182
if [[ "${{ matrix.package_type }}" == "sdist" ]]; then
183
183
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
+
184
196
elif [[ "${{ matrix.python }}" == "2.7" ]]; then
185
197
pip${{ matrix.python }} install dist/${{needs.package_python2.outputs.wheel}}
186
198
else
187
199
pip${{ matrix.python }} install dist/${{needs.package_python3.outputs.wheel}}
188
200
fi
189
-
201
+
190
202
pyminify --version
191
203
192
204
set -x
@@ -251,6 +263,8 @@ jobs:
251
263
- package_python2
252
264
- package_python3
253
265
- documentation
266
+ - test_package
267
+ - test_typing
254
268
permissions :
255
269
contents : write
256
270
outputs :
@@ -289,7 +303,7 @@ jobs:
289
303
echo "Draft release created: $release_url"
290
304
291
305
# Extract the untagged release ID from the URL
292
- untagged_id=$(echo "$ release_url" | sed 's|.* tag/||')
306
+ untagged_id="${ release_url##*/ tag/}"
293
307
echo "release_id=$untagged_id" >> "$GITHUB_OUTPUT"
294
308
295
309
- 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