Skip to content

Commit 7b04ee5

Browse files
committed
ci: use python 3.12 as the reference version for tests
1 parent 7e832e2 commit 7b04ee5

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/build-wheels.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: startsWith(matrix.os, 'macos')
2828
uses: actions/setup-python@v2
2929
with:
30-
python-version: 3.11
30+
python-version: 3.12
3131

3232
- name: Cache dependencies
3333
uses: actions/cache@v4
@@ -64,9 +64,8 @@ jobs:
6464
run: |
6565
/tmp/venv/bin/python3 -m pip install dist/aleph_sdk_python-*.whl
6666
67-
- name: Install `setuptools` on systems where it is missing by default
67+
- name: Install/upgrade `setuptools`
6868
run: /tmp/venv/bin/python3 -m pip install --upgrade setuptools
69-
if: matrix.os == 'ubuntu-24.04'
7069

7170
- name: Import and use the package
7271
run: |

.github/workflows/pytest.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [ "3.9", "3.10", "3.11" ]
20-
# An issue with secp256k1 prevents Python 3.12 from working
21-
# See https://github.com/baking-bad/pytezos/issues/370
22-
runs-on: ubuntu-latest
19+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
20+
os: [ubuntu-22.04, ubuntu-24.04]
21+
runs-on: ${{ matrix.os }}
2322

2423
steps:
2524
- uses: actions/checkout@v4
@@ -37,13 +36,10 @@ jobs:
3736
/tmp/venv/bin/pip freeze
3837
/tmp/venv/bin/hatch run testing:pip freeze
3938
/tmp/venv/bin/hatch run testing:test
40-
if: matrix.python-version != '3.11'
4139
4240
- run: /tmp/venv/bin/hatch run testing:cov
43-
if: matrix.python-version == '3.11'
4441

4542
- uses: codecov/[email protected]
46-
if: matrix.python-version == '3.11'
4743
with:
4844
token: ${{ secrets.CODECOV_TOKEN }}
4945
slug: aleph-im/aleph-sdk-python

0 commit comments

Comments
 (0)