-
Notifications
You must be signed in to change notification settings - Fork 75
43 lines (39 loc) · 1.01 KB
/
ci-base.yaml
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
---
name: CI (base)
on:
push:
pull_request:
defaults:
run:
shell: sh -ex {0}
jobs:
lint-and-style:
name: Static Analysis
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v3
- name: Formatting
run: tox -e black -e isort
- name: Style
run: tox -e flake8
- name: Mypy
run: tox -e mypy
- name: Version Consistency
run: python3 ./tools/check-versions-are-consistent.py
unit-tests:
name: Unit Tests
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v3
- name: Unit
run: tox -e test