-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.09 KB
/
linters.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
44
45
name: linters
on:
pull_request:
push:
branches:
- 'main'
- 'force_ci/linters/**' # For development, and debugging of the workflow.
jobs:
linters:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: flake8
target: flake8
- name: mypy
target: typecheck
- name: black
target: format_check
steps:
- uses: actions/checkout@v2
- name: Set up Python and pip caching
uses: actions/setup-python@v2
with:
python-version: '3.12'
cache: pip
cache-dependency-path: |
requirements.txt
requirements.dev.txt
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements.dev.txt
- name: Run make ${{ matrix.target }}
run: |
echo "::add-matcher::${GITHUB_WORKSPACE}/.github/matchers/${{ matrix.name }}.json"
make ${{ matrix.target }}
echo "::remove-matcher owner=${{ matrix.name }}::"