-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 1.23 KB
/
coding_style_checks.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
name: Run coding style check through reusable workflow
# This workflow will run linting checks to ensure a level of uniformization among all Ledger applications.
#
# The presence of this workflow is mandatory as a minimal level of linting is required.
# You are however free to modify the content of the .clang-format file and thus the coding style of your application.
# We simply ask you to not diverge too much from the linting of the Boilerplate application.
on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:
jobs:
check_linting:
name: Check linting using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1
with:
source: './app/src'
extensions: 'h,c'
version: 15
pylint_check:
name: Python Lint Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pylint
run: pip install pylint -r tests/requirements.txt
- name: Run pylint with .pylintrc
run: pylint --errors-only --rcfile=tests/integration/.pylintrc tests/integration/nano/