strawberry/.github/workflows/test.yaml

27 lines
518 B
YAML
Raw Normal View History

2024-08-09 22:20:29 -05:00
name: 🍓
2024-08-09 22:18:29 -05:00
2024-08-09 22:06:39 -05:00
on:
pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
2024-08-09 22:16:44 -05:00
python-version: '3.11'
2024-08-09 22:20:29 -05:00
- run: |
2024-08-09 22:06:39 -05:00
set +e
timeout 5s python3 strawberry.py
exit_code=$?
if [ $exit_code -eq 124 ]; then
echo "Key Interrupt (timeout) - Success"
exit 0
else
echo "Unexpected exit code: $exit_code"
exit 1
fi