-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.18 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: backend - on Push to main
on:
push:
branches:
- main
paths:
- "backend/**"
jobs:
python:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
npm i cross-os
pip install -r requirements.txt
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 'v21.7.1'
- name: Install npm packages
run: |
cd backend/auth_service
npm install express
- name: Test backend
run: |
echo "Starting Servers"
node backend/api_gateway/src/index.js
sleep 5
echo "Testing unique prescriber codes and pdf generation"
python -m unittest backend/verification_service/test/code_pdf_tests.py
echo "Testing authentication service"
python backend/auth_service/tests.py