Skip to content

Update sandbox.yml

Update sandbox.yml #52

Workflow file for this run

name: shell-test
on:
push:
branches:
- shell-escape-space
workflow_dispatch:
# allow manual runs on branches without a PR
jobs:
shell-test:
name: shell test on ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/setup-python@v4
- name: setup environment
shell: bash
id: setup
run: |
set -euxo pipefail
python -m venv 'venv A'
if [ -d 'venv A/bin']; then
echo "python=$(pwd)/venv A/bin/python" >> "$GITHUB_OUTPUT"
else
echo "python=$(pwd)/venv A/Scripts/python.exe" >> "$GITHUB_OUTPUT"
fi
mkdir 'test A'
echo "print(__file__)" >> 'test A/test.py'
echo "t"
echo "test=$(pwd)/test A/test.py" >> "$GITHUB_OUTPUT"
echo "t"

Check failure on line 36 in .github/workflows/sandbox.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sandbox.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
- name: works with shell
shell: bash
run: "${{ steps.setup.outputs.python }}" "${{ steps.setup.outputs.test }}"