-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (35 loc) · 1.18 KB
/
integration_tests.yml
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
name: Integration tests
on: [push, pull_request]
jobs:
setup-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: UTC
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Set up poetry
run: |
pip install poetry
poetry install
- name: Install Python dependencies
run: poetry install
- name: Run integration test for food delivery API
run: |
poetry run pytest tests/integration/test_food_delivery_api.py --exitfirst --verbose --failed-first --cov=. --cov-report html
- name: Run integration test for user wallet API
run: |
poetry run pytest tests/integration/test_user_wallet_api.py --exitfirst --verbose --failed-first --cov=. --cov-report html
- name: Run tests for core
run: |
poetry run pytest tests/integration/test_core.py --exitfirst --verbose --failed-first --cov=. --cov-report html