Skip to content

Commit 58c9e59

Browse files
authored
Add Python 3.14 and 3.14t to the testing (#784)
* Add Python 3.14 to the testing * Fix macOS architecture labels in workflow * Add Python version '3.14t' to workflow
1 parent ffc654a commit 58c9e59

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/push.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ jobs:
1212
- '3.11'
1313
- '3.12'
1414
- '3.13'
15-
- 'pypy-3.9'
15+
- '3.14'
16+
- '3.14t'
17+
- 'pypy-3.11'
1618
java:
1719
- '8'
1820
- '11'
1921
- '23'
2022
os:
21-
# macos-latest (ATM macos-14) runs on Apple Silicon,
22-
# macos-13 runs on Intel
23+
# macos-latest (ATM macos-15) runs on Apple Silicon,
24+
# macos-15-intel runs on Intel
2325
- 'ubuntu-latest'
2426
- 'windows-latest'
2527
- 'macos-latest'
26-
- 'macos-13'
28+
- 'macos-15-intel'
2729
architecture:
2830
- 'x64'
2931
- 'x86'
@@ -36,9 +38,9 @@ jobs:
3638
architecture: aarch64
3739
- os: ubuntu-latest
3840
architecture: x86
39-
- os: macos-13
41+
- os: macos-15-intel
4042
architecture: aarch64
41-
- os: macos-13
43+
- os: macos-15-intel
4244
architecture: x86
4345
- os: macos-latest
4446
architecture: aarch64
@@ -49,7 +51,7 @@ jobs:
4951
architecture: x86
5052
- os: windows-latest
5153
architecture: x86
52-
python: 'pypy-3.9'
54+
python: 'pypy-3.11'
5355
- os: windows-latest
5456
architecture: x86
5557
java: '20'
@@ -67,21 +69,22 @@ jobs:
6769
steps:
6870
- uses: actions/checkout@master
6971

70-
- name: Setup python
71-
uses: actions/setup-python@v5
72+
- name: Setup Python ${{ matrix.python }}
73+
uses: actions/setup-python@v6
7274
with:
7375
python-version: ${{ matrix.python }}
7476
architecture: ${{ matrix.architecture == 'aarch64' && 'arm64' || matrix.architecture }}
77+
allow-prereleases: true
7578

76-
- name: Setup java
77-
uses: actions/setup-java@v4
79+
- name: Setup Java ${{ matrix.java }}
80+
uses: actions/setup-java@v5
7881
with:
7982
java-version: ${{ matrix.java }}
8083
distribution: 'temurin'
8184
architecture: ${{ matrix.architecture }}
8285

8386
- name: (macOS) Setup test dependencies
84-
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
87+
if: runner.os == 'macOS'
8588
run: brew install ant
8689

8790
- name: Build test classes via ant
@@ -92,15 +95,15 @@ jobs:
9295
pip install --timeout=120 .[dev,ci]
9396
9497
- name: (Windows) Test pyjnius via pytest
95-
if: matrix.os == 'windows-latest'
98+
if: runner.os == 'Windows'
9699
run: |
97100
$env:PATH +=";$env:JAVA_HOME\jre\bin\server\;$env:JAVA_HOME\jre\bin\client\;$env:JAVA_HOME\bin\server\"
98101
$env:CLASSPATH ="../build/test-classes;../build/classes"
99102
cd tests
100103
pytest -v
101104
102105
- name: (Linux, macOS) Test pyjnius via pytest
103-
if: (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') || (matrix.os == 'macos-13')
106+
if: runner.os != 'Windows'
104107
run: |
105108
cd tests
106109
CLASSPATH=../build/test-classes:../build/classes python -m pytest -v

0 commit comments

Comments
 (0)