Skip to content

Commit 2c7d515

Browse files
committed
fix unit tests and update publish workflow
1 parent 130d4de commit 2c7d515

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
run: |
1818
python -m pip install --upgrade pip
1919
pip install setuptools wheel twine
20+
- name: Make sure unit tests succeed
21+
run: |
22+
pip install -r test/test_requirements.txt
23+
pip install -e .
24+
pytest
2025
- name: Build and publish
2126
env:
2227
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

test/test_util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ def test_empty_file(tmp_path):
2323

2424
def test_retrieve_authors(tmp_path):
2525

26-
tmp_path = "/Users/ue86yw/workspace/testrepo"
27-
2826
# Create file
2927
file_name = os.path.join(tmp_path, 'new-file')
3028
with open(file_name, 'w') as the_file:

0 commit comments

Comments
 (0)