Skip to content

Commit

Permalink
Jeromehardaway/update code clean (#8)
Browse files Browse the repository at this point in the history
* Add feedback JSON file and update requirements for new dependencies

* adding tests and refactor

* pushed fixes

* update action
  • Loading branch information
jeromehardaway authored Oct 24, 2024
1 parent e4aaafd commit 9d0fd56
Show file tree
Hide file tree
Showing 6 changed files with 790 additions and 34 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/unit-test.yml
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
Loading

0 comments on commit 9d0fd56

Please sign in to comment.