File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,42 +15,29 @@ jobs:
1515 image : mongo:4.4
1616 options : >-
1717 --health-cmd="mongo --eval 'db.runCommand({ ping:1 })'"
18- --health-interval=10s
19- --health-timeout=5s
20- --health-retries=5
21- ports :
22- - 27017:27017
18+ --health-interval=10s --health-timeout=5s --health-retries=5
19+ --name mongo
2320
2421 steps :
25- - name : Checkout code
22+ - name : Checkout repository
2623 uses : actions/checkout@v3
2724
2825 - name : Set up Python
2926 uses : actions/setup-python@v4
3027 with :
3128 python-version : ' 3.12'
3229
33- - name : Set up dependencies
30+ - name : Install Python dependencies
3431 run : |
3532 python -m pip install --upgrade pip
3633 pip install -r requirements.txt
3734
38- - name : Download and Install Keploy
35+ - name : Download and install Keploy
3936 run : |
4037 curl -L https://github.com/keploy/keploy/releases/download/v0.2.7/keploy-linux-amd64 -o keploy
4138 chmod +x keploy
4239 sudo mv keploy /usr/local/bin/keploy
43-
44-
4540
46- - name : Wait for MongoDB
47- run : |
48- for i in {1..10}; do
49- nc -z localhost 27017 && echo "Mongo is up!" && break
50- echo "Waiting for Mongo..."
51- sleep 5
52- done
53-
54- - name : Run Keploy Tests
41+ - name : Run Keploy test
5542 run : |
5643 keploy test -c "python flask_api_server.py" --delay 10
You can’t perform that action at this time.
0 commit comments