From 3ea32c525a234c3226372384fc399dfc2c92c993 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 8 Jul 2024 14:06:39 +0000 Subject: [PATCH] add Python 3.12 to Github workflows matrix --- .github/build-requirements.txt | 1 + .github/workflows/build.yaml | 5 +++-- .github/workflows/pylint.yaml | 16 ++++++++++++++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/build-requirements.txt b/.github/build-requirements.txt index 97123c75..e5306811 100644 --- a/.github/build-requirements.txt +++ b/.github/build-requirements.txt @@ -1,2 +1,3 @@ +setuptools build wheel diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7d915104..3b1ecfbb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,6 +4,7 @@ on: push: paths: - '.github/workflows/build.yaml' + - '.github/build-requirements.txt' - 'pyproject.toml' - 'setup.cfg' - 'test/ref/**' @@ -17,7 +18,7 @@ jobs: strategy: matrix: - python-version: ["3.9","3.10","3.11"] + python-version: ["3.9","3.10","3.11","3.12"] steps: - uses: actions/checkout@v4 @@ -37,6 +38,6 @@ jobs: - name: Build and install MMGen Wallet run: | - python3 -m pip install build wheel + python3 -m pip install setuptools build wheel python3 -m build --no-isolation python3 -m pip install --user --break-system-packages dist/*.whl diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml index 803e9c94..34459e61 100644 --- a/.github/workflows/pylint.yaml +++ b/.github/workflows/pylint.yaml @@ -4,6 +4,7 @@ on: push: paths: - '.github/workflows/pylint.yaml' + - '.github/build-requirements.txt' - 'pyproject.toml' - 'setup.cfg' - 'test/ref/**' @@ -17,7 +18,16 @@ jobs: strategy: matrix: - python-version: ["3.9","3.10","3.11"] + python-version: ["3.9","3.10","3.11","3.12"] + include: + - python-version: "3.9" + pylint_ver: "3.1.1" + - python-version: "3.10" + pylint_ver: "3.1.1" + - python-version: "3.11" + pylint_ver: "3.1.1" + - python-version: "3.12" + pylint_ver: "3.1.1" steps: - uses: actions/checkout@v4 @@ -32,12 +42,14 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'pip' cache-dependency-path: | + .github/build-requirements.txt setup.cfg - 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 pycryptodomex pysocks pycoin ipaddress varint pylint==3.1.1 + python3 -m pip install pycryptodomex pysocks pycoin ipaddress varint pylint==${{ matrix.pylint_ver }} python3 -m pip install --no-deps py_ecc==1.6.0 mypy_extensions==0.4.1 monero python3 setup.py build_ext --inplace