diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68f051f4..83da6599 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: id: extract-python run: | if [[ "${{ matrix.toxenv }}" =~ py[0-9]+ ]]; then - PYTHON_VERSION=$(echo "${{ matrix.toxenv }}" | grep -o 'py[0-9]\+' | sed 's/py/3./') + PYTHON_VERSION=$(echo "${{ matrix.toxenv }}" | sed -E 's/py([0-9])([0-9]+).*/\1.\2/') else # Default version PYTHON_VERSION=3.8