Skip to content

Commit 18dbb97

Browse files
committed
Add cicd pipeline for Streamlit app
1 parent dc8bb72 commit 18dbb97

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

β€Ž.github/workflows/pipeline.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
name: GitHub Actions Demo
2-
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
3-
on: [ push ]
1+
name: Financial Dashboard
2+
3+
on: [ push, pull_request ]
4+
45
jobs:
5-
Explore-GitHub-Actions:
6+
build:
67
runs-on: ubuntu-latest
78
steps:
8-
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
9-
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10-
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
11-
- name: Check out repository code
9+
- name: Checkout code
1210
uses: actions/checkout@v4
13-
- run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
14-
- run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
15-
- name: List files in the repository
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.11"
16+
17+
- name: Install dependencies
1618
run: |
17-
ls ${{ github.workspace }}
18-
- run: echo "🍏 This job's status is ${{ job.status }}."
19+
python -m pip install --upgrade pip
20+
pip install -r requirements.txt
21+
22+
- name: Linting and Testing Streamlit app
23+
uses: streamlit/streamlit-app-action@v0.0.3
24+
with:
25+
skip-smoke: 'true'
26+
app-path: 'src/app.py'
27+
ruff: 'true'
28+

β€Žrequirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
streamlit
2+
pytest

0 commit comments

Comments
Β (0)