-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 867 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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."