From b4044c9ac1e51d5f54df5b7857f5d4221bc3d5db Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 17 Aug 2026 09:05:14 +0000 Subject: [PATCH] update Github workflows --- .github/workflows/build.yaml | 8 ++++---- .github/workflows/lint.yaml | 16 +++++++++++----- README.md | 4 ++-- mmgen/data/version | 2 +- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c0bb2e3d..a7e6b3dc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: build +name: Build/Install on: push: @@ -21,14 +21,14 @@ 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' @@ -39,5 +39,5 @@ jobs: - name: Build and install MMGen Wallet run: | python3 -m pip install setuptools build wheel - python3 -m build --no-isolation + python3 -m build --no-isolation --wheel python3 -m pip install --user --break-system-packages dist/*.whl diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b02b7ea9..ffa38099 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,4 +1,6 @@ -name: lint(ruff+pylint+bandit) +name: Check + +run-name: Check code with Ruff, Bandit and Pylint static analyzers on: push: @@ -47,19 +49,23 @@ jobs: - name: Check the code with Ruff static analyzer run: | + ruff check --output-format=github setup.py ruff check --output-format=github mmgen ruff check --output-format=github test ruff check --output-format=github examples + - name: Check code vulnerabilities with Bandit static analyzer + run: | + bandit --silent --recursive --severity-level=all --configfile=pyproject.toml setup.py + bandit --silent --recursive --severity-level=all --configfile=pyproject.toml mmgen + bandit --silent --recursive --severity-level=all --configfile=pyproject.toml examples + - name: Check the code with Pylint static analyzer env: PYTHONPATH: . run: | + pylint setup.py 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 diff --git a/README.md b/README.md index 3423f648..4906d52c 100644 --- a/README.md +++ b/README.md @@ -205,5 +205,5 @@ Donate: [ms]: ../../wiki/command-help-seedsplit [ta]: ../../wiki/Tool-API [L]: ../../wiki/command-help-tool -[bb]: https://github.com/mmgen/mmgen-wallet/workflows/build/badge.svg -[lb]: https://github.com/mmgen/mmgen-wallet/workflows/lint(ruff+pylint+bandit)/badge.svg +[bb]: https://github.com/mmgen/mmgen-wallet/actions/workflows/build.yaml/badge.svg +[lb]: https://github.com/mmgen/mmgen-wallet/actions/workflows/lint.yaml/badge.svg diff --git a/mmgen/data/version b/mmgen/data/version index 22577103..679c08f1 100644 --- a/mmgen/data/version +++ b/mmgen/data/version @@ -1 +1 @@ -16.2.dev10 +16.2.dev11