generated from streamlit/chatbot-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jeromehardaway/update code clean (#8)
* Add feedback JSON file and update requirements for new dependencies * adding tests and refactor * pushed fixes * update action
- Loading branch information
1 parent
e4aaafd
commit 9d0fd56
Showing
6 changed files
with
790 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
name: Run Unit Tests with Pytest | ||
|
||
on: [ push, pull_request ] | ||
name: Python Tests | ||
on: | ||
push: | ||
branches: [ main, jeromehardaway/update-code-clean ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run tests with coverage report | ||
run: | | ||
pytest --cov --cov-report=term-missing | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest pytest-cov | ||
- name: Run tests with coverage report | ||
env: | ||
TESTING: "true" | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
run: | | ||
pytest --cov --cov-report=term-missing |
Oops, something went wrong.