pylint.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: pylint
  2. on:
  3. push:
  4. paths:
  5. - '.github/workflows/pylint.yaml'
  6. - 'pyproject.toml'
  7. - 'setup.cfg'
  8. - 'test/ref/**'
  9. - 'cmds/**'
  10. - '**.py'
  11. - '**.c'
  12. jobs:
  13. test:
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. python-version: ["3.10","3.11"]
  18. steps:
  19. - uses: actions/checkout@v4
  20. - name: Install Ubuntu package dependencies
  21. run: |
  22. sudo apt-get install libsecp256k1-dev
  23. - name: Set up Python ${{ matrix.python-version }}
  24. uses: actions/setup-python@v4
  25. with:
  26. python-version: ${{ matrix.python-version }}
  27. cache: 'pip'
  28. cache-dependency-path: |
  29. setup.cfg
  30. - name: Install Python dependencies
  31. run: |
  32. python3 -m pip install gmpy2 cryptography pynacl ecdsa aiohttp requests pexpect scrypt semantic-version
  33. python3 -m pip install pycryptodomex pysocks pycoin ipaddress varint pylint
  34. python3 -m pip install --no-deps py_ecc==1.6.0 mypy_extensions==0.4.1 monero
  35. python3 setup.py build_ext --inplace
  36. - name: Check the code with Pylint static code analyzer
  37. env:
  38. PYTHONPATH: .
  39. run: |
  40. pylint --errors-only mmgen
  41. pylint --errors-only test
  42. pylint --errors-only examples
  43. pylint --errors-only --disable=relative-beyond-top-level test/cmdtest_py_d