name: Test Python Here-string on: workflow_dispatch: jobs: test: name: Test Python runs-on: host steps: - name: Check Python here-string shell: sh run: | set -eu echo "Testing python3 -c with unindented code..." python3 -c " import sys print('Python here-string works!') print(f'Python version: {sys.version}') " echo "Done"