diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index d56775453..48c2bad88 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -55,9 +55,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: python version run: python --version shell: bash + + - name: Check for test files + id: check_tests + run: | + if find . -type f -name "test_*.py" | grep -q .; then + echo "has_tests=true" >> $GITHUB_OUTPUT + else + echo "has_tests=false" >> $GITHUB_OUTPUT + fi + shell: bash + - name: Python - Run Tests + if: steps.check_tests.outputs.has_tests == 'true' run: python -m unittest shell: bash