-
Notifications
You must be signed in to change notification settings - Fork 329
114 lines (105 loc) · 3.09 KB
/
push.yml
File metadata and controls
114 lines (105 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
on: [push, pull_request]
name: Continuous Integration
jobs:
Tests:
name: base
continue-on-error: true
strategy:
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
- '3.14t'
- 'pypy-3.11'
java:
- '8'
- '11'
- '23'
os:
# macos-latest (ATM macos-15) runs on Apple Silicon,
# macos-15-intel runs on Intel
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
- 'macos-15-intel'
architecture:
- 'x64'
- 'x86'
- 'aarch64'
exclude:
- python: '3.13'
- os: windows-latest
architecture: aarch64
- os: ubuntu-latest
architecture: aarch64
- os: ubuntu-latest
architecture: x86
- os: macos-15-intel
architecture: aarch64
- os: macos-15-intel
architecture: x86
- os: macos-latest
architecture: aarch64
java: '8'
- os: macos-latest
architecture: x64
- os: macos-latest
architecture: x86
- os: windows-latest
architecture: x86
python: 'pypy-3.11'
- os: windows-latest
architecture: x86
java: '20'
- os: windows-latest
architecture: x86
java: '21'
- os: windows-latest
architecture: x86
java: '22'
- os: windows-latest
architecture: x86
java: '23'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.architecture == 'aarch64' && 'arm64' || matrix.architecture }}
allow-prereleases: true
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
architecture: ${{ matrix.architecture }}
- name: (macOS) Setup test dependencies
if: runner.os == 'macOS'
run: brew install ant
- name: Build test classes via ant
run: ant all
- name: Install pyjnius with [dev, ci] extras
run: |
pip install --timeout=120 .[dev,ci]
- name: (Windows) Test pyjnius via pytest
if: runner.os == 'Windows'
run: |
$env:PATH +=";$env:JAVA_HOME\jre\bin\server\;$env:JAVA_HOME\jre\bin\client\;$env:JAVA_HOME\bin\server\"
$env:CLASSPATH ="../build/test-classes;../build/classes"
cd tests
pytest -v
- name: (Linux, macOS) Test pyjnius via pytest
if: runner.os != 'Windows'
run: |
cd tests
CLASSPATH=../build/test-classes:../build/classes python -m pytest -v
# - name: coveralls
# run: python -m coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}