File tree Expand file tree Collapse file tree 3 files changed +0
-44
lines changed
Expand file tree Collapse file tree 3 files changed +0
-44
lines changed Original file line number Diff line number Diff line change 1- name : RideSharing CI
2-
3- on :
4- push :
5- branches : [ main ]
6- pull_request :
7- branches : [ main ]
8-
9- jobs :
10- build-and-test :
11- runs-on : ubuntu-latest
12-
13- services :
14- postgres :
15- image : postgres:15
16- ports :
17- - 5432:5432
18- env :
19- POSTGRES_DB : rides
20- POSTGRES_USER : postgres
21- POSTGRES_PASSWORD : postgres
22-
23- redis :
24- image : redis:7
25- ports :
26- - 6379:6379
27-
28- steps :
29- - uses : actions/checkout@v3
30-
31- - name : Set up Python
32- uses : actions/setup-python@v4
33- with :
34- python-version : " 3.11"
35-
36- - name : Install dependencies
37- run : |
38- pip install -r requirements.txt
39-
40- - name : Run Tests
41- run : pytest --cov=services tests/
42-
43- - name : Build Docker Images
44- run : docker-compose build
You can’t perform that action at this time.
0 commit comments