Add github action to run lint source code #42
This file contains hidden or 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
| # SPDX-License-Identifier: MPL-2.0 | |
| # SPDX-FileCopyrightText: 2024 igo95862 | |
| --- | |
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| linters: | |
| name: Run source code linters | |
| runs-on: ubuntu-latest | |
| container: | |
| image: docker.io/archlinux:latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install linters | |
| run: | | |
| pacman --noconfirm -Syu \ | |
| reuse python-pyflakes python-black \ | |
| python-isort mypy codespell | |
| - name: Run linters | |
| run: | | |
| python3 tools/run_linters.py |