-
Notifications
You must be signed in to change notification settings - Fork 43
39 lines (37 loc) · 1.12 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
name: Lint
on:
pull_request:
branches-ignore:
- mrosemartin84
- soapbox
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python: ['3.10']
steps:
- name: Check out source
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: tests/requirements/lint.txt
- name: Install dependencies
run: pip install --requirement=tests/requirements/lint.txt
- name: Run linters
run: |
mkdir --parents artifacts/${{ matrix.os }}/${{ matrix.python }}/
flake8 --benchmark --statistics --tee --output-file=artifacts/${{ matrix.os }}/${{ matrix.python }}/flake8.txt
check-manifest --verbose | tee artifacts/${{ matrix.os }}/${{ matrix.python }}/manifest.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: lint-artifacts-${{ github.actor }}-${{ github.sha }}
path: artifacts