test: 验证Python here-string的YAML问题
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user