-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 930 Bytes
/
main.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
name: ci
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack:0.12.19.1
env:
SERVICES: s3
ports:
- 4566:4566
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade poetry
poetry install -E server
- run: poetry run pytest --cov=ampel --integration
env:
LOCALSTACK_URI: http://localhost:4566
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade poetry
poetry install -E server
- run: poetry run mypy --namespace-packages -p ampel