From 1f1a79bff07821acfea077376da5f1e5a16c1407 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 21 Jun 2024 01:12:42 +0200 Subject: [PATCH] update CI conf --- .github/workflows/tests.yml | 2 +- scripts/internal/winmake.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 91224d75..39fccaeb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -51,7 +51,7 @@ jobs: - name: Install pydeps run: | python.exe -m pip install --upgrade --user setuptools pip wheel - python.exe -m pip install --upgrade mock ipaddress pypiwin32 wmi pyopenssl psutil + python.exe -m pip install --upgrade mock ipaddress pypiwin32 wmi pyopenssl psutil pytest python.exe -m pip freeze python.exe setup.py install diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 9dbf8ffd..9d49ea7c 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -373,10 +373,10 @@ def lint(): sh("%s -m flake8 %s" % (PYTHON, py_files), nolog=True) -def test(): +def test(args=""): """Run tests.""" build() - sh("%s -m pytest %s" % (PYTHON, PYTEST_ARGS)) + sh("%s -m pytest %s %s" % (PYTHON, PYTEST_ARGS, args)) def test_authorizers(): @@ -429,7 +429,7 @@ def coverage(): def test_by_name(name): """Run test by name.""" build() - sh("%s -m unittest -v %s" % (PYTHON, name)) + test(name) def test_failed():