Skip to content

Commit f3960de

Browse files
authored
Update python-publish.yml
1 parent 185b420 commit f3960de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python-publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Upload Python Package
4+
name: Upload Python Package to PyPI
55

66
on:
77
release:
@@ -22,6 +22,10 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
pip install setuptools wheel twine
25+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+
- name: Test with pytest
27+
run: |
28+
python3 -m pytest --cov=sheet2dict -v tests/ --disable-warnings
2529
- name: Build and publish
2630
env:
2731
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)