forked from TencentBlueKing/bk-user
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 870 Bytes
/
Copy pathpython-ci.yml
File metadata and controls
36 lines (31 loc) · 870 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
name: Python CI Check
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [3.6.14]
poetry-version: [1.1.7]
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry config virtualenvs.create false && poetry install
- name: Lint with flake8
run: pflake8 src/ --config=pyproject.toml
- name: Lint with mypy
run: mypy src/ --config-file=pyproject.toml