pylint.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: Pylint
  2. on: [push]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. python-version: ["3.9","3.10","3.11"]
  9. steps:
  10. - uses: actions/checkout@v3
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v3
  13. with:
  14. python-version: ${{ matrix.python-version }}
  15. - name: Install Ubuntu dependencies
  16. run: sudo apt-get update && sudo apt-get install curl
  17. - name: Install Python dependencies
  18. run: |
  19. python3 -m pip install --upgrade pip
  20. python3 -m pip install gmpy2 cryptography pynacl ecdsa aiohttp requests pexpect scrypt semantic-version
  21. python3 -m pip install pycryptodomex pysocks
  22. python3 -m pip install --no-deps py_ecc==1.6.0 mypy_extensions==0.4.1
  23. python3 -m pip install pylint
  24. - name: Check the code with pylint static code analyzer
  25. run: |
  26. pylint --errors-only mmgen
  27. pylint --errors-only test
  28. pylint --errors-only --disable=relative-beyond-top-level test/cmdtest_py_d