Skip to content

Commit 0bd3a01

Browse files
committed
running without browser
1 parent f021ef7 commit 0bd3a01

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

.github/workflows/streamlit-dev.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ jobs:
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__}')"

0 commit comments

Comments
 (0)