We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1988519 commit 363e909Copy full SHA for 363e909
.github/workflows/deploy.yml
@@ -29,15 +29,20 @@ jobs:
29
with:
30
python-version: '3.9'
31
32
- - name: Install dependencies
33
- working-directory: ./backend
+ - name: Create and activate virtual environment
34
run: |
+ python -m venv venv
35
+ source venv/bin/activate
36
python -m pip install --upgrade pip
- pip install -r requirements.txt
37
-
+ pip install -r backend/requirements.txt
38
+
39
- name: Run Tests
40
working-directory: ./backend
- run: pytest --disable-warnings
41
+ env:
42
+ MONGO_URI: "mongodb://localhost:27017/test_db"
43
+ run: |
44
+ source ../venv/bin/activate
45
+ pytest --disable-warnings
46
47
build-frontend:
48
name: Build Frontend
0 commit comments