switch from "setup.py test" to "python -m unittest" (pytest has a weird 'I/O operation on closed file' bug though)

This commit is contained in:
Mort Yao 2024-06-23 20:30:31 +02:00
parent 2569aa03f6
commit 4b9c951084
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install flake8 pytest
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |

View File

@ -8,7 +8,7 @@ i:
@(cd src/; python3 -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)')
test:
$(SETUP) test
(cd src; python -m unittest discover -s ../tests)
clean:
zenity --question