Skip to content

Commit

Permalink
api test added to actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FatimaZCZ committed Dec 12, 2023
1 parent 4369e3e commit 0292d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
#pip install requests
#pip install http
#pip install pytest
#pip install fastapi.testclient
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff --format=github --target-version=py310 .
continue-on-error: true
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
coverage run -m pytest ./tests/api_test/ -v -s
- name: Generate Coverage Report
run: |
coverage report -m
push_app_to_registry:
name: Push APP Docker image to Docker Hub
needs: perform_pytest
runs-on: ubuntu-latest
steps:
- name: 1 Copy repository
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pydantic==2.5.2
pydantic_core==2.14.5
pyparsing==3.1.1
pytest==7.4.3
pytest-html==4.1.1
pytest-metadata==3.0.0
python-dateutil==2.8.2
python-dotenv==1.0.0
python-multipart==0.0.6
Expand Down

0 comments on commit 0292d1b

Please sign in to comment.