pylint.yaml 1.1 KB

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