fixed streamlit check keeps on running #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Streamlit Check | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
run-linters: | |
name: Run Linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Python dependencies | |
run: | | |
pip install black flake8 streamlit | |
- name: Run Python linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
auto_fix: true | |
black: true | |
flake8: true | |
- name: Streamlit Check | |
run: | | |
# Remove the old 'streamlit run streamlit.py' line. | |
python streamlit_test.py && echo "Streamlit test passed!" || echo "Streamlit test failed." |