Integrating NFC transport in tests #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code style check | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
job_lint_C: | |
name: Lint C code | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v3 | |
- name: Lint C code | |
run: find src/ include/ cbor-src/ -iname "*.c" -or -iname "*.h" | xargs clang-format --dry-run -Werror | |
job_lint_python: | |
name: Lint Python code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v3 | |
- name: Install flake8 | |
run: | | |
sudo apt update | |
sudo apt install -y flake8 | |
- name: Lint Python code | |
run: cd tests/functional && flake8 |