mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +08:00
37 lines
863 B
YAML
37 lines
863 B
YAML
name: App testing
|
|
|
|
on:
|
|
push:
|
|
branches: [ "develop" ]
|
|
pull_request:
|
|
branches: [ "develop" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
streamlit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: |
|
|
cd app/streamlit
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- uses: streamlit/streamlit-app-action@v0.0.3
|
|
with:
|
|
app-path: app/streamlit/Chatbot.py
|
|
ruff: true
|
|
skip-smoke: true
|
|
pytest-args: -v --junit-xml=test-results.xml
|
|
- if: always()
|
|
uses: pmeier/pytest-results-action@v0.6.0
|
|
with:
|
|
path: test-results.xml
|
|
summary: true
|
|
display-options: fEX
|