-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 1.16 KB
/
ci.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
name: Build and test
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Setup RabbitMQ
uses: nijel/[email protected]
with:
rabbitmq version: 3.8.9
- name: Install code
run: |
pip install .[testing,pre-commit]
- name: Test code
run: |
pytest -s .
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Setup RabbitMQ
uses: nijel/[email protected]
with:
rabbitmq version: 3.8.9
- name: Install code
run: |
pip install .[pre-commit]
- name: Run pre-commit
run: |
pre-commit install
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )