From 57ae7a53c3d93396887eb2dab1d84b3f78c11ba8 Mon Sep 17 00:00:00 2001 From: REZANANS Date: Thu, 26 Sep 2024 08:31:45 +0200 Subject: [PATCH] Update python-package.yml --- .github/workflows/python-package.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ec7deb3..7347afd 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,7 +35,12 @@ jobs: - name: Test with pytest run: | - pytest + # Check if any test files exist before running pytest + if ls test*.py &>/dev/null || ls tests/ &>/dev/null; then + pytest + else + echo "No tests found, skipping pytest." + fi - name: Run MikroTik IP list conversion script run: |