Skip to content

Commit

Permalink
test: update python to 3.12 and libs to latest
Browse files Browse the repository at this point in the history
Ref: ETCM-9392
  • Loading branch information
rsporny committed Feb 18, 2025
1 parent e699432 commit 565d331
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/actions/tests/setup-python/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Install python and pytest'
description: 'Setup ptyhon for running e2e tests'
description: 'Setup python for running e2e tests'

runs:
using: composite
Expand All @@ -17,8 +17,8 @@ runs:
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install -y python3.10 python3.10-venv python3.10-dev
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
sudo apt install -y python3.12 python3.12-venv python3.12-dev
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
curl -L --silent https://github.com/getsops/sops/releases/download/v3.7.3/sops_3.7.3_amd64.deb > sops.deb && sudo dpkg -i sops.deb && rm sops.deb
python -m venv venv
source venv/bin/activate
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ dev/local-environment/configurations/partner-chains-node/overrides
dev/local-environment/runtime-values/*

ogmios_client.log

# e2e tests (Python)
venv
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ WARNING: Benchmarking command has been removed, because `frame-benchmarking-cli`
* Made Cardano slot duration configurable with default of 1000ms. If your partner chain's main chain is Cardano
mainnet or one of the official testnets, you don't need to change anything. Otherwise, the duration can
be set through `MC__SLOT_DURATION_MILLIS` environment variable.
* e2e-tests: updated python to 3.12 and libs versions.

## Removed

Expand Down
2 changes: 1 addition & 1 deletion dev/local-environment/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CARDANO_IMAGE="ghcr.io/intersectmbo/cardano-node:10.1.4"
DBSYNC_IMAGE="ghcr.io/intersectmbo/cardano-db-sync:13.6.0.4"
OGMIOS_IMAGE="cardanosolutions/ogmios:v6.11.0"
POSTGRES_IMAGE="postgres:17.2"
TESTS_IMAGE="python:3.10-slim"
TESTS_IMAGE="python:3.12-slim"

display_banner() {
cat <<'EOF'
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/Earthfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION 0.7
FROM python:3.10
FROM python:3.12
WORKDIR /test

COPY --dir ./config ./secrets ./tests ./src ./requirements.txt ./pytest.ini ./tox.ini .
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Welcome to `Partner Chains Tests`, a powerful and flexible test automation frame

## Installation

1. Install `python 3.10` and `pip`.
1. Install `python 3.12` and `pip`.
2. Create and activate virtual environment
```bash
$ pip install virtualenv
Expand Down
22 changes: 11 additions & 11 deletions e2e-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
omegaconf==2.3.0
pytest==7.4.0
pytest-xdist==3.3.1
substrate-interface==1.7.8
web3==6.17.0
sqlalchemy==2.0.19
psycopg2-binary==2.9.6
filelock==3.12.3
pytest==8.3.4
pytest-xdist==3.6.1
substrate-interface==1.7.11
web3==7.8.0
sqlalchemy==2.0.38
psycopg2-binary==2.9.10
filelock==3.17.0
pytest-json-report==1.5.0
pydantic==2.5.3
scalecodec==1.2.8
paramiko==3.4.0
pydantic==2.10.6
scalecodec==1.2.11
paramiko==3.5.1
pytest-json-ctrf==0.3.5
numpy==1.26.4
numpy==2.2.3
scp==0.15.0
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_upsert_permissioned_candidates(
"""
new_candidates_list, candidate_to_remove = permissioned_candidates

logging.info(f"Setting permissioned candidates {new_candidates_list}")
logging.info(f"Setting permissioned candidates {list(new_candidates_list.keys())}")
result, next_status_epoch = api.upsert_permissioned_candidates(new_candidates_list)
assert result, f"Addition of permissioned candidate {new_candidates_list} failed."

Expand Down

0 comments on commit 565d331

Please sign in to comment.