-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 867 Bytes
/
ci.yml
File metadata and controls
41 lines (31 loc) · 867 Bytes
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
name: CI Pipeline
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
lint-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install pip-tools
run: python -m pip install --upgrade pip pip-tools
- name: Install dev dependencies from lock file
run: pip-sync requirements-dev.lock
- name: Lint with flake8
run: flake8 .
- name: Check formatting with black
run: black --check .
- name: Type-check with mypy
run: mypy . || true
- name: Run tests
run: pytest --cov=services tests/