update Github workflows

This commit is contained in:
The MMGen Project 2026-08-15 14:13:09 +00:00
commit bb4aaf8ae5
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 25 additions and 12 deletions

View file

@ -1,9 +1,9 @@
name: ruff
name: lint (ruff+pylint+bandit)
on:
push:
paths:
- '.github/workflows/ruff.yaml'
- '.github/workflows/lint.yaml'
- '.github/build-requirements.txt'
- 'pyproject.toml'
- 'setup.cfg'
@ -21,32 +21,45 @@ jobs:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Ubuntu package dependencies
run: |
sudo apt-get install libsecp256k1-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
.github/build-requirements.txt
setup.cfg
**-requirements.txt
- name: Install Python dependencies
run: |
python3 -m pip install pip setuptools build wheel
python3 -m pip install gmpy2 cryptography pynacl ecdsa aiohttp requests pexpect scrypt semantic-version
python3 -m pip install pycryptodome pysocks pycoin ipaddress varint ruff
python3 -m pip install lxml py-ecc monero eth-keys pure-protobuf
python3 -m pip install gmpy2 cryptography pynacl aiohttp requests lxml scrypt semantic-version
python3 -m pip install pycryptodome pure-protobuf pysocks
python3 -m pip install pexpect ecdsa pyaes pycoin monero eth-keys ruff pylint bandit
python3 setup.py build_ext --inplace
- name: Check the code with Ruff static code analyzer
env:
PYTHONPATH: .
- name: Check the code with Ruff static analyzer
run: |
ruff check --output-format=github mmgen
ruff check --output-format=github test
ruff check --output-format=github examples
- name: Check the code with Pylint static analyzer
env:
PYTHONPATH: .
run: |
pylint mmgen
pylint test
pylint --disable=relative-beyond-top-level test/cmdtest_d
pylint examples
- name: Check code vulnerabilities with Bandit static analyzer
run: |
bandit --silent --recursive --severity-level=medium --configfile=pyproject.toml mmgen

View file

@ -3,7 +3,7 @@
##### A terminal-based online/offline cryptocurrency wallet
![build](https://github.com/mmgen/mmgen-wallet/workflows/build/badge.svg)
![ruff](https://github.com/mmgen/mmgen-wallet/workflows/ruff/badge.svg)
![lint](https://github.com/mmgen/mmgen-wallet/workflows/lint/badge.svg)
### Description

View file

@ -1 +1 @@
16.2.dev8
16.2.dev9