Skip to content

Commit a693686

Browse files
micafertisonkun
andauthored
Move test actions to python 3.10 (#2083)
Co-authored-by: tison <wander4096@gmail.com>
1 parent 7cf908a commit a693686

8 files changed

Lines changed: 28 additions & 23 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v6
3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v3
35+
uses: github/codeql-action/init@v4
3636
with:
3737
languages: ${{ matrix.language }}
3838
- name: Autobuild
39-
uses: github/codeql-action/autobuild@v3
39+
uses: github/codeql-action/autobuild@v4
4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@v3
41+
uses: github/codeql-action/analyze@v4

.github/workflows/install-tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
python_version:
23-
- "3.6"
24-
- "3.7"
2523
- "3.8"
2624
- "3.9"
2725
- "3.10"
2826
- "3.11"
29-
- "pypy-3.7"
30-
- "pypy-3.8"
27+
- "3.12"
28+
- "3.13"
3129
- "pypy-3.9"
30+
- "pypy-3.10"
3231

3332
steps:
3433
- uses: actions/checkout@v6

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
strategy:
3232
matrix:
33-
python_version: [ 3.9 ]
33+
python_version: [ "3.10" ]
3434

3535
steps:
3636
- uses: actions/checkout@v6

.github/workflows/main.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979

8080
strategy:
8181
matrix:
82-
python_version: [ 3.9 ]
82+
python_version: [ "3.10"]
8383

8484
steps:
8585
- uses: actions/checkout@v6
@@ -122,7 +122,7 @@ jobs:
122122

123123
strategy:
124124
matrix:
125-
python_version: [ 3.9 ]
125+
python_version: [ "3.10" ]
126126

127127
steps:
128128
- uses: actions/checkout@v6
@@ -159,10 +159,16 @@ jobs:
159159

160160
strategy:
161161
matrix:
162-
python_version: [ 3.9 ]
162+
python_version: [ "3.10" ]
163163

164164
steps:
165165
- uses: actions/checkout@v6
166+
167+
- name: Install system dependencies
168+
run: |
169+
sudo apt-get update
170+
sudo apt-get install -y libvirt-dev pkg-config gcc
171+
166172
- name: Use Python ${{ matrix.python_version }}
167173
uses: actions/setup-python@v6
168174
with:
@@ -205,7 +211,7 @@ jobs:
205211
tar -xzvf "${TARBALL_FILENAME}"
206212
207213
cd "apache_libcloud-${VERSION}/"
208-
tox -c tox.ini -epy3.9
214+
tox -c tox.ini -epy3.10
209215
210216
- name: Verify Wheel Release Artifact
211217
run: |
@@ -225,15 +231,15 @@ jobs:
225231
cp ../../tox.ini .
226232
cp ../../requirements-tests.txt .
227233
cp ../../libcloud/test/secrets.py-dist libcloud/test/secrets.py-dist
228-
tox -c tox.ini -epy3.9
234+
tox -c tox.ini -epy3.10
229235
230236
build_test_docker_image:
231237
name: Build and Verify Docker Image
232238
runs-on: ubuntu-latest
233239

234240
strategy:
235241
matrix:
236-
python_version: [ 3.9 ]
242+
python_version: [ "3.10" ]
237243

238244
steps:
239245
- uses: actions/checkout@v6
@@ -315,7 +321,7 @@ jobs:
315321

316322
strategy:
317323
matrix:
318-
python_version: [ 3.9 ]
324+
python_version: [ "3.10" ]
319325

320326
steps:
321327
- uses: actions/checkout@v6
@@ -349,7 +355,7 @@ jobs:
349355

350356
strategy:
351357
matrix:
352-
python_version: [ 3.9 ]
358+
python_version: [ "3.10" ]
353359

354360
steps:
355361
- uses: actions/checkout@v6

.github/workflows/publish_dev_artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use Python ${{ matrix.python_version }}
2828
uses: actions/setup-python@v6
2929
with:
30-
python-version: 3.9
30+
python-version: "3.10"
3131

3232
- name: Print Environment Info
3333
run: printenv | sort

.github/workflows/publish_pricing_to_s3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python_version: [ 3.9 ]
20+
python_version: [ "3.10" ]
2121

2222
steps:
2323
- uses: actions/checkout@v6

scripts/time_imports.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ find . -name "*.pyc" -print0 | xargs -0 rm
2626

2727
# Example line:
2828
# import time: 1112 | 70127 | libcloud
29-
LIBCLOUD_IMPORT_TIMINGS=$(python3.9 -X importtime -c "import libcloud" 2>&1)
29+
LIBCLOUD_IMPORT_TIMINGS=$(python3.10 -X importtime -c "import libcloud" 2>&1)
3030
LIBCLOUD_IMPORT_TIME_CUMULATIVE_US=$(echo -e "${LIBCLOUD_IMPORT_TIMINGS}" | tail -1 | grep "| libcloud" | awk '{print $5}')
3131

3232
echo "Import timings for \"libcloud\" module"
@@ -40,7 +40,7 @@ fi
4040
# Clean up any cached files to ensure consistent and clean environment
4141
find . -name "*.pyc" -print0 | xargs -0 rm
4242

43-
EC2_DRIVER_IMPORT_TIMINGS=$(python3.9 -X importtime -c "import libcloud.compute.drivers.ec2" 2>&1)
43+
EC2_DRIVER_IMPORT_TIMINGS=$(python3.10 -X importtime -c "import libcloud.compute.drivers.ec2" 2>&1)
4444
EC2_DRIVER_IMPORT_TIME_CUMULATIVE_US=$(echo -e "$EC2_DRIVER_IMPORT_TIMINGS}" | tail -1 | grep "| libcloud.compute.drivers.ec2" | awk '{print $5}')
4545

4646
echo ""

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ basepython =
2727
pypypy3.10: pypy3.10
2828
pypypy-3.10: pypy3.10
2929
pypyjion: pyjion
30-
{docs,checks,black,black-check,lint,pylint,mypy,micro-benchmarks,coverage,import-timings,isort,isort-check,pyupgrade}: python3.9
31-
{py3.9,py3.9-dist,py3.9-dist-wheel,py3.9-windows,integration-storage}: python3.9
32-
{py3.10,py3.10-dist,py3.10-dist-wheel,bandit}: python3.10
30+
{docs,checks,black,black-check,bandit,lint,pylint,mypy,micro-benchmarks,coverage,import-timings,isort,isort-check,pyupgrade,integration-storage}: python3.10
31+
{py3.9,py3.9-dist,py3.9-dist-wheel,py3.9-windows}: python3.9
32+
{py3.10,py3.10-dist,py3.10-dist-wheel}: python3.10
3333
{py3.11,py3.11-dist,py3.11-dist-wheel}: python3.11
3434
{py3.12,py3.12-dist,py3.12-dist-wheel}: python3.12
3535
{py3.13-dev,py3.13-dev-dist,py3.13-dev-dist-wheel}: python3.13

0 commit comments

Comments
 (0)