File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,13 +110,21 @@ jobs:
110110
111111 - name : Test Streamlit app imports
112112 run : |
113+ # Test that all required dependencies are available
113114 python -c "import streamlit; print('Streamlit version:', streamlit.__version__)"
114115 python -c "import plotly; print('Plotly version:', plotly.__version__)"
115- python -c "import streamlit_app; print('Streamlit app imported successfully')"
116+
117+ # Test that the Streamlit app can be imported (with 30-second timeout to prevent hanging)
118+ python -c "import signal; import sys; signal.alarm(30); import streamlit_app; print('Streamlit app imported successfully')"
116119
117120 - name : Test run script
118121 run : |
119- python run_streamlit.py --help || echo "Run script executed (expected to show help or start server)"
122+ # Test that the run script exists and has valid syntax
123+ python -m py_compile run_streamlit.py
124+ echo "✅ Run script syntax is valid"
125+
126+ # Test that the script can be imported (without running it - with 30-second timeout)
127+ python -c "import signal; import sys; signal.alarm(30); import run_streamlit; print('✅ Run script imported successfully')"
120128
121129 - name : Test pygetpapers CLI availability
122130 run : |
Original file line number Diff line number Diff line change 4141 python -m py_compile streamlit_app.py
4242 echo "✅ Streamlit app syntax is valid"
4343
44- # Test that the run script exists and is executable
45- python run_streamlit.py --help || echo "✅ Run script exists"
44+ # Test that the run script exists and has valid syntax
45+ python -m py_compile run_streamlit.py
46+ echo "✅ Run script syntax is valid"
47+
48+ # Test that the script can be imported (without running it - with 30-second timeout)
49+ python -c "import signal; import sys; signal.alarm(30); import run_streamlit; print('✅ Run script imported successfully')"
4650
4751 # Test that all required dependencies are available
4852 python -c "import streamlit; print(f'✅ Streamlit {streamlit.__version__}')"
You can’t perform that action at this time.
0 commit comments