Merge pull request #2266 from Gredin67/dev #900
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
| name: Run code lint | |
| on: | |
| push: | |
| branches: [ "dev" ] | |
| pull_request: | |
| jobs: | |
| python-lint: | |
| name: Python lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install tox and any other packages | |
| run: pip install tox toml pyyaml | |
| - if: success() || failure() | |
| run: tox -e py311-lint | |
| - if: success() || failure() | |
| run: tox -e py311-invalidcode | |
| - if: success() || failure() | |
| run: tox -e py311-mypy | |
| - name: Check i18n keys | |
| if: success() || failure() | |
| run: python3 maintenance/missing_i18n_keys.py --check | |
| bash-lint: | |
| name: Bash lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run ShellCheck | |
| uses: salamandar/action-shellcheck@master | |
| with: | |
| additional_files: | | |
| bin/yunoprompt | |
| debian/postinst | |
| debian/postrm | |
| debian/prerm | |
| hooks/*/* | |
| tests | |
| helpers/helpers.v2.1.d/* | |
| ignore_paths: | |
| tests/test_helpers.v2.d | |
| helpers/vendor | |
| src/vendor |