Skip to content

Commit

Permalink
test: run tests on python 3.12 (#688)
Browse files Browse the repository at this point in the history
* run tests on python 3.12

* fix branches
  • Loading branch information
mvadari authored Feb 16, 2024
1 parent a38f61d commit 2e1435c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

on:
push:
branches: [ master ]
branches: [main]
pull_request:
workflow_dispatch:

Expand All @@ -17,7 +17,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache: "poetry"

- name: Display Python version
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/snippet_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Snippets

on:
push:
branches: [ master ]
branches: [main]
pull_request:
workflow_dispatch:

Expand All @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
Expand All @@ -38,7 +38,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache: "poetry"

- name: Display Python version
run: |
Expand All @@ -47,6 +47,5 @@ jobs:
- name: Install poetry dependencies
run: poetry install


- name: Run Snippets
run: (for i in snippets/*.py; do echo "Running $i" && poetry run python $i || exit 1; done)
4 changes: 2 additions & 2 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Unit test

on:
push:
branches: [master]
branches: [main]
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Welcome to xrpl-py's Documentation!
A pure Python implementation for interacting with the XRP Ledger, the ``xrpl-py`` library simplifies the hardest parts of XRP Ledger interaction, like serialization and transaction signing, by providing native Python methods and models for `XRP Ledger transactions <https://xrpl.org/transaction-formats.html>`_ and core server `API <https://xrpl.org/api-conventions.html>`_ (`rippled <https://github.com/ripple/rippled>`_) objects.


See the `project README <https://github.com/XRPLF/xrpl-py/blob/master/README.md>`_ for more information about its features and usage examples.
See the `project README <https://github.com/XRPLF/xrpl-py/blob/main/README.md>`_ for more information about its features and usage examples.



Expand Down
2 changes: 1 addition & 1 deletion xrpl/wallet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def from_secret_numbers(
invalid.
"""
# Logic adapted from xrpl-secret-numbers secretToEntropy function
# https://github.com/WietseWind/xrpl-secret-numbers/blob/master/src/utils/index.ts
# https://github.com/XRPLF/xrpl.js/blob/main/packages/secret-numbers/src/utils/index.ts

parsed_secret_numbers = (
secret_numbers.split()
Expand Down

0 comments on commit 2e1435c

Please sign in to comment.