Just wanted to share, we recently launched streamlit-app-action, a GitHub Action that makes it easier than ever to add automated tests to your app repository on GitHub using Streamlit AppTest.
The action will:
- Run a simple smoke test on each page of your app to ensure it loads successfully
- Run any custom tests you included in your repo
- Optionally perform linting with
ruff
You can read more in our latest tutorial update: Automate your tests with CI - Streamlit Docs
Here’s a minimal example workflow file you could add to your app repo to get started:
# .github/workflows/streamlit-app.yml
name: Streamlit app
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
app-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: streamlit/streamlit-app-action@v0.0.3
with:
app-path: streamlit_app.py
Let us know what you think! Also if you have ideas for how to make it better, contributions are welcome