Skip to content

Commit

Permalink
- fix error mongodb in run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jprogram committed Jul 22, 2024
1 parent 1988519 commit 363e909
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@ jobs:
with:
python-version: '3.9'

- name: Install dependencies
working-directory: ./backend
- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r backend/requirements.txt
- name: Run Tests
working-directory: ./backend
run: pytest --disable-warnings
env:
MONGO_URI: "mongodb://localhost:27017/test_db"
run: |
source ../venv/bin/activate
pytest --disable-warnings
build-frontend:
name: Build Frontend
Expand Down

0 comments on commit 363e909

Please sign in to comment.