This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new a693686c5 Move test actions to python 3.10 (#2083)
a693686c5 is described below
commit a693686c5764839d5eb7c20c31ce451cb7820f55
Author: Miguel Caballer Fernandez <[email protected]>
AuthorDate: Sun Jan 25 15:36:07 2026 +0100
Move test actions to python 3.10 (#2083)
Co-authored-by: tison <[email protected]>
---
.github/workflows/codeql-analysis.yml | 6 +++---
.github/workflows/install-tests.yml | 7 +++----
.github/workflows/integration-tests.yml | 2 +-
.github/workflows/main.yml | 22 ++++++++++++++--------
.github/workflows/publish_dev_artifact.yml | 2 +-
.github/workflows/publish_pricing_to_s3.yml | 2 +-
scripts/time_imports.sh | 4 ++--
tox.ini | 6 +++---
8 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/codeql-analysis.yml
b/.github/workflows/codeql-analysis.yml
index 1b6d2c748..ba9a4828e 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -32,10 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- name: Initialize CodeQL
- uses: github/codeql-action/init@v3
+ uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
- uses: github/codeql-action/autobuild@v3
+ uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v3
+ uses: github/codeql-action/analyze@v4
diff --git a/.github/workflows/install-tests.yml
b/.github/workflows/install-tests.yml
index 32dae1c8b..977cae133 100644
--- a/.github/workflows/install-tests.yml
+++ b/.github/workflows/install-tests.yml
@@ -20,15 +20,14 @@ jobs:
fail-fast: false
matrix:
python_version:
- - "3.6"
- - "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- - "pypy-3.7"
- - "pypy-3.8"
+ - "3.12"
+ - "3.13"
- "pypy-3.9"
+ - "pypy-3.10"
steps:
- uses: actions/checkout@v6
diff --git a/.github/workflows/integration-tests.yml
b/.github/workflows/integration-tests.yml
index f8ddd815c..b73d29b86 100644
--- a/.github/workflows/integration-tests.yml
+++ b/.github/workflows/integration-tests.yml
@@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 42fd13162..d91142593 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -79,7 +79,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10"]
steps:
- uses: actions/checkout@v6
@@ -122,7 +122,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
@@ -159,10 +159,16 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
+
+ - name: Install system dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libvirt-dev pkg-config gcc
+
- name: Use Python ${{ matrix.python_version }}
uses: actions/setup-python@v6
with:
@@ -205,7 +211,7 @@ jobs:
tar -xzvf "${TARBALL_FILENAME}"
cd "apache_libcloud-${VERSION}/"
- tox -c tox.ini -epy3.9
+ tox -c tox.ini -epy3.10
- name: Verify Wheel Release Artifact
run: |
@@ -225,7 +231,7 @@ jobs:
cp ../../tox.ini .
cp ../../requirements-tests.txt .
cp ../../libcloud/test/secrets.py-dist libcloud/test/secrets.py-dist
- tox -c tox.ini -epy3.9
+ tox -c tox.ini -epy3.10
build_test_docker_image:
name: Build and Verify Docker Image
@@ -233,7 +239,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
@@ -315,7 +321,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
@@ -349,7 +355,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
diff --git a/.github/workflows/publish_dev_artifact.yml
b/.github/workflows/publish_dev_artifact.yml
index f8e1f31a3..4a845a72c 100644
--- a/.github/workflows/publish_dev_artifact.yml
+++ b/.github/workflows/publish_dev_artifact.yml
@@ -27,7 +27,7 @@ jobs:
- name: Use Python ${{ matrix.python_version }}
uses: actions/setup-python@v6
with:
- python-version: 3.9
+ python-version: "3.10"
- name: Print Environment Info
run: printenv | sort
diff --git a/.github/workflows/publish_pricing_to_s3.yml
b/.github/workflows/publish_pricing_to_s3.yml
index fc8e44204..99509751e 100644
--- a/.github/workflows/publish_pricing_to_s3.yml
+++ b/.github/workflows/publish_pricing_to_s3.yml
@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
- python_version: [ 3.9 ]
+ python_version: [ "3.10" ]
steps:
- uses: actions/checkout@v6
diff --git a/scripts/time_imports.sh b/scripts/time_imports.sh
index 314ae8aa9..d1905c4d0 100755
--- a/scripts/time_imports.sh
+++ b/scripts/time_imports.sh
@@ -26,7 +26,7 @@ find . -name "*.pyc" -print0 | xargs -0 rm
# Example line:
# import time: 1112 | 70127 | libcloud
-LIBCLOUD_IMPORT_TIMINGS=$(python3.9 -X importtime -c "import libcloud" 2>&1)
+LIBCLOUD_IMPORT_TIMINGS=$(python3.10 -X importtime -c "import libcloud" 2>&1)
LIBCLOUD_IMPORT_TIME_CUMULATIVE_US=$(echo -e "${LIBCLOUD_IMPORT_TIMINGS}" |
tail -1 | grep "| libcloud" | awk '{print $5}')
echo "Import timings for \"libcloud\" module"
@@ -40,7 +40,7 @@ fi
# Clean up any cached files to ensure consistent and clean environment
find . -name "*.pyc" -print0 | xargs -0 rm
-EC2_DRIVER_IMPORT_TIMINGS=$(python3.9 -X importtime -c "import
libcloud.compute.drivers.ec2" 2>&1)
+EC2_DRIVER_IMPORT_TIMINGS=$(python3.10 -X importtime -c "import
libcloud.compute.drivers.ec2" 2>&1)
EC2_DRIVER_IMPORT_TIME_CUMULATIVE_US=$(echo -e "$EC2_DRIVER_IMPORT_TIMINGS}" |
tail -1 | grep "| libcloud.compute.drivers.ec2" | awk '{print $5}')
echo ""
diff --git a/tox.ini b/tox.ini
index d6288b547..4dc73b0d2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -27,9 +27,9 @@ basepython =
pypypy3.10: pypy3.10
pypypy-3.10: pypy3.10
pypyjion: pyjion
-
{docs,checks,black,black-check,lint,pylint,mypy,micro-benchmarks,coverage,import-timings,isort,isort-check,pyupgrade}:
python3.9
- {py3.9,py3.9-dist,py3.9-dist-wheel,py3.9-windows,integration-storage}:
python3.9
- {py3.10,py3.10-dist,py3.10-dist-wheel,bandit}: python3.10
+
{docs,checks,black,black-check,bandit,lint,pylint,mypy,micro-benchmarks,coverage,import-timings,isort,isort-check,pyupgrade,integration-storage}:
python3.10
+ {py3.9,py3.9-dist,py3.9-dist-wheel,py3.9-windows}: python3.9
+ {py3.10,py3.10-dist,py3.10-dist-wheel}: python3.10
{py3.11,py3.11-dist,py3.11-dist-wheel}: python3.11
{py3.12,py3.12-dist,py3.12-dist-wheel}: python3.12
{py3.13-dev,py3.13-dev-dist,py3.13-dev-dist-wheel}: python3.13