diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 14835e99..9dbdc707 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -190,7 +190,7 @@ jobs: - name: Validate version run: | $pythonVersion = (python --version) - if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){ + if ("Python ${{ matrix.python }}".replace("==", "") -ne "$pythonVersion"){ Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}" exit 1 }