Skip to content

Commit 3dd21fc

Browse files
committed
update CI workflows
1 parent ae5f35d commit 3dd21fc

File tree

6 files changed

+54
-41
lines changed

6 files changed

+54
-41
lines changed

.cirrus.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ only_if: changesInclude('.cirrus.yml') || ($CIRRUS_BRANCH == "main" && !changesI
22

33
run_tests: &RUN_TESTS
44
install_cibuildwheel_script:
5+
- python -V
56
- python -m pip install -e ".[dev]" pytest-custom-exit-code
67
run_cibuildwheel_tests_script:
78
- python ./bin/run_tests.py
89

9-
1010
linux_x86_task:
1111
timeout_in: 120m
1212
compute_engine_instance:
@@ -15,9 +15,14 @@ linux_x86_task:
1515
platform: linux
1616
cpu: 8
1717
memory: 8G
18-
18+
env:
19+
VENV_ROOT: ${HOME}/venv-cibuildwheel
20+
PATH: ${VENV_ROOT}/bin:${PATH}
1921
install_pre_requirements_script:
20-
- apt install -y python3-venv python-is-python3
22+
- add-apt-repository -y ppa:deadsnakes/ppa
23+
- apt-get update
24+
- apt-get install -y python3.12-venv
25+
- python3.12 -m venv ${VENV_ROOT}
2126
<<: *RUN_TESTS
2227

2328
linux_aarch64_task:
@@ -28,9 +33,14 @@ linux_aarch64_task:
2833
platform: linux
2934
cpu: 4
3035
memory: 4G
31-
36+
env:
37+
VENV_ROOT: ${HOME}/venv-cibuildwheel
38+
PATH: ${VENV_ROOT}/bin:${PATH}
3239
install_pre_requirements_script:
33-
- apt install -y python3-venv python-is-python3
40+
- add-apt-repository -y ppa:deadsnakes/ppa
41+
- apt-get update
42+
- apt-get install -y python3.12-venv
43+
- python3.12 -m venv ${VENV_ROOT}
3444
<<: *RUN_TESTS
3545

3646
windows_x86_task:
@@ -43,30 +53,32 @@ windows_x86_task:
4353
memory: 8G
4454

4555
install_pre_requirements_script:
46-
- choco install -y --no-progress python3 --version 3.10.6
56+
- choco install -y --no-progress python3 --version 3.12.4
4757
- refreshenv
4858
- echo PATH=%PATH% >> "%CIRRUS_ENV%"
4959
<<: *RUN_TESTS
5060

5161
macos_arm64_task:
5262
macos_instance:
5363
image: ghcr.io/cirruslabs/macos-sonoma-xcode
54-
5564
env:
56-
PATH: /opt/homebrew/opt/[email protected]/libexec/bin:$PATH
65+
VENV_ROOT: ${HOME}/venv-cibuildwheel
66+
PATH: ${VENV_ROOT}/bin:${PATH}
5767
install_pre_requirements_script:
58-
- brew install [email protected]
68+
- brew install [email protected]
69+
- python3.12 -m venv ${VENV_ROOT}
5970
<<: *RUN_TESTS
6071

6172
macos_arm64_cp38_task:
6273
macos_instance:
6374
image: ghcr.io/cirruslabs/macos-sonoma-xcode
64-
6575
env:
66-
PATH: /opt/homebrew/opt/[email protected]/libexec/bin:$PATH
76+
VENV_ROOT: ${HOME}/venv-cibuildwheel
77+
PATH: ${VENV_ROOT}/bin:${PATH}
6778
PYTEST_ADDOPTS: --run-cp38-universal2 -k 'test_cp38_arm64_testing_universal2_installer or test_arch_auto'
6879
install_pre_requirements_script:
69-
- brew install [email protected]
80+
- brew install [email protected]
81+
- python3.12 -m venv ${VENV_ROOT}
7082
- curl -fsSLO https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
7183
- sudo installer -pkg python-3.8.10-macos11.pkg -target /
7284
- rm python-3.8.10-macos11.pkg

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
41-
python_version: ['3.12']
41+
python_version: ['3.13']
4242
include:
4343
- os: ubuntu-latest
4444
python_version: '3.11'
@@ -49,6 +49,7 @@ jobs:
4949
name: Install Python ${{ matrix.python_version }}
5050
with:
5151
python-version: ${{ matrix.python_version }}
52+
allow-prereleases: true
5253

5354
- uses: yezz123/setup-uv@v4
5455

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ branches:
88

99
jobs:
1010
include:
11-
- name: Linux | x86_64 + i686 | Python 3.9
12-
python: 3.9
11+
- name: Linux | x86_64 + i686 | Python 3.11
12+
python: 3.11
1313
services: docker
1414
env: PYTHON=python
1515

16-
- name: Linux | arm64 | Python 3.9
17-
python: 3.9
16+
- name: Linux | arm64 | Python 3.11
17+
python: 3.11
1818
services: docker
1919
arch: arm64-graviton2
2020
group: edge
2121
virt: vm
2222
env: PYTHON=python
2323

24-
- name: Linux | ppc64le | Python 3.9
25-
python: 3.9
24+
- name: Linux | ppc64le | Python 3.11
25+
python: 3.11
2626
services: docker
2727
arch: ppc64le
2828
allow_failure: True
@@ -32,16 +32,16 @@ jobs:
3232
# c.f. https://travis-ci.community/t/running-out-of-disk-space-quota-when-using-docker-on-ppc64le/11634
3333
- PYTEST_ADDOPTS='-k "not test_manylinuxXXXX_only"'
3434

35-
- name: Windows | x86_64 | Python 3.9
35+
- name: Windows | x86_64 | Python 3.11
3636
os: windows
3737
language: shell
3838
before_install:
39-
- choco upgrade python3 -y --version 3.9.13 --limit-output --params "/InstallDir:C:\\Python39"
39+
- choco upgrade python3 -y --version 3.11.9 --limit-output --params "/InstallDir:C:\\Python311"
4040
env:
41-
- PYTHON=C:\\Python39\\python
41+
- PYTHON=C:\\Python311\\python
4242

43-
- name: Linux | s390x | Python 3.9
44-
python: 3.9
43+
- name: Linux | s390x | Python 3.11
44+
python: 3.11
4545
services: docker
4646
arch: s390x
4747
env: PYTHON=python

CI.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
This is a summary of the host Python versions and platforms covered by the different CI platforms:
22

3-
| | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 |
4-
|---------|----------------------------------------------|-----------|-----------|---------|--------------------------------------|
5-
| Linux | AppVeyor¹ / Azure Pipelines / GitHub Actions | Travis CI | Cirrus CI | | CircleCI¹ / GitHub Actions / GitLab¹ |
6-
| macOS | AppVeyor¹ / Azure Pipelines | | Cirrus CI | GitLab¹ | CircleCI¹ / GitHub Actions |
7-
| Windows | AppVeyor¹ / Azure Pipelines | Travis CI | Cirrus CI | | GitHub Actions / GitLab¹ |
3+
| | 3.11 | 3.12 | 3.13 |
4+
|---------|----------------------------------------------|---------------------------------------------|----------------|
5+
| Linux | Azure Pipelines / GitHub Actions / Travis CI | AppVeyor¹ / CircleCI¹ / Cirrus CI / GitLab¹ | GitHub Actions |
6+
| macOS | Azure Pipelines / GitLab¹ | AppVeyor¹ / CircleCI¹ / Cirrus CI / GitLab¹ | GitHub Actions |
7+
| Windows | Azure Pipelines / Travis CI | AppVeyor¹ / Cirrus CI / GitLab¹ | GitHub Actions |
88

99
> ¹ Runs a reduced set of tests to reduce CI load
1010
11-
Non-x86 architectures are covered on Travis CI using Python 3.9.
11+
Non-x86 architectures are covered on Travis CI using Python 3.11.

appveyor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
environment:
22
matrix:
33
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
4-
APPVEYOR_JOB_NAME: "python38-x64-ubuntu"
4+
APPVEYOR_JOB_NAME: "python312-x64-ubuntu"
55
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
6-
APPVEYOR_JOB_NAME: "python38-x64-vs2015"
6+
APPVEYOR_JOB_NAME: "python312-x64-vs2015"
77
- APPVEYOR_BUILD_WORKER_IMAGE: macos
8-
APPVEYOR_JOB_NAME: "python38-x64-macos"
8+
APPVEYOR_JOB_NAME: "python312-x64-macos"
99

10-
stack: python 3.8
10+
stack: python 3.12
1111

1212
build: off
1313

1414
init:
15-
- cmd: set PATH=C:\Python38;C:\Python38\Scripts;%PATH%
15+
- cmd: set PATH=C:\Python312;C:\Python312\Scripts;%PATH%
1616
- ps: |
1717
$BRANCH = if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:APPVEYOR_REPO_BRANCH }
1818
if (-not ($BRANCH -eq 'main' -or $BRANCH.ToLower().StartsWith('appveyor-'))) {

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ pr:
55
- .pre-commit-config.yaml
66

77
jobs:
8-
- job: linux_38
8+
- job: linux_311
99
timeoutInMinutes: 120
1010
pool: {vmImage: 'Ubuntu-20.04'}
1111
steps:
1212
- task: UsePythonVersion@0
1313
inputs:
14-
versionSpec: '3.8'
14+
versionSpec: '3.11'
1515
- bash: |
1616
python -m pip install -e ".[dev]"
1717
python ./bin/run_tests.py
1818
19-
- job: macos_38
19+
- job: macos_311
2020
pool: {vmImage: 'macOS-12'}
2121
steps:
2222
- task: UsePythonVersion@0
2323
inputs:
24-
versionSpec: '3.8'
24+
versionSpec: '3.11'
2525
- bash: |
2626
python -m pip install -e ".[dev]"
2727
python ./bin/run_tests.py --num-processes 2
2828
29-
- job: windows_38
29+
- job: windows_311
3030
pool: {vmImage: 'windows-2019'}
3131
timeoutInMinutes: 180
3232
steps:
3333
- task: UsePythonVersion@0
3434
inputs:
35-
versionSpec: '3.8'
35+
versionSpec: '3.11'
3636
- bash: |
3737
python -m pip install -e ".[dev]"
3838
python ./bin/run_tests.py

0 commit comments

Comments
 (0)