Skip to content

Implement feature X to enhance user experience and fix bug Y in module Z #13

Implement feature X to enhance user experience and fix bug Y in module Z

Implement feature X to enhance user experience and fix bug Y in module Z #13

Workflow file for this run

name: Smoke Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Smoke test (run training for up to 3 minutes)
run: |
set +e
timeout 180 python microgpt.py
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "Completed!"
elif [ $exit_code -eq 124 ]; then
echo "Timed out after 3 minutes (expected for full training) - PASS"
else
echo "Script failed with exit code $exit_code"
exit 1
fi