-
Notifications
You must be signed in to change notification settings - Fork 253
53 lines (43 loc) · 1.13 KB
/
lint.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
name: lint
on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Setup Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2.1.7
with:
key: pip-lint
path: ${{ steps.pip-cache.outputs.dir }}
- name: Install dependencies
run: |
python -m pip install --upgrade --requirement requirements-dev.txt
- name: Run pyroma
run: |
python -m pyroma --min 10 --directory .
- name: flake8 Lint
uses: py-actions/flake8@v2.0.0
with:
flake8-version: 4.0.1
path: aiomysql
args: tests examples