We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4839be + 749ea4f commit 5a18f60Copy full SHA for 5a18f60
1 file changed
.github/workflows/deploy.yml
@@ -5,9 +5,33 @@ on:
5
branches: [main]
6
7
jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v4
17
+ with:
18
+ python-version: '3.9'
19
20
+ - name: Install backend dependencies
21
+ run: |
22
+ cd backend
23
+ pip install -r requirements.txt
24
+ pip install -r requirements-dev.txt
25
26
+ - name: Run backend tests
27
28
29
+ pytest -v tests/
30
31
deploy:
32
runs-on: ubuntu-latest
33
environment: deploy
34
+ needs: test # Only deploy if tests pass
35
36
steps:
37
- name: Checkout repository
0 commit comments