-
-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (52 loc) · 1.35 KB
/
pull_request.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on:
pull_request:
push:
branches:
- release-v*.*.*
env:
POETRY_VERSION: "1.1.13"
POETRY_CACHE_DIR: .poetry_cache
PYTHON_VERSION: "3.x"
jobs:
dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run developer workflow
run: make dev && make livecheck
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run lint tests
run: make lint
unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: poetry install
- name: Unit tests
run: make unit
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make dev
- name: Run Postman collection
uses: matt-ball/newman-action@master
with:
collection: tests/integration/openfoodfacts-events.postman_collection.json
environment: tests/integration/off-local.postman_environment.json
delayRequest: 5000
- run: make clean