-
Notifications
You must be signed in to change notification settings - Fork 75
99 lines (97 loc) · 3.53 KB
/
tests.yml
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
name: Tests
on:
push:
branches:
- master
- develop
- 'release/**'
- 'hotfix/**'
- 'feature/**'
pull_request:
branches:
- master
- develop
- 'release/**'
- 'hotfix/**'
- 'feature/**'
jobs:
linux_tests:
name: Linux - Python ${{ matrix.python-version }} with Java ${{ matrix.java-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', 3.11]
# java-version: ['11.0.21+9', '16.0.2+7', '17.0.9+9', '18.0.2+101', '19.0.2+7', '20.0.2+9', '21.0.1+12.0.LTS']
java-version: ['11.0.21+9', '16.0.2+7', '17.0.9+9', '18.0.2+101', '19.0.2+7', '20.0.2+9']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
architecture: x64
java-package: jdk
java-version: ${{ matrix.java-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install jpype1
- name: Run test targets for ${{ matrix.python-version }}
run: python -m unittest discover ./tests -p '*.py'
windows_tests:
name: Win - Python ${{ matrix.python-version }} with Java ${{ matrix.java-version }}
needs: linux_tests
runs-on: windows-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', 3.11]
# java-version: ['11.0.20+101', '16.0.2+7', '17.0.9+9.1', '18.0.2+101', '19.0.2+7', '20.0.2+9', '21.0.1+12.1.LTS']
java-version: ['11.0.20+101', '16.0.2+7', '17.0.9+9.1', '18.0.2+101', '19.0.2+7', '20.0.2+9']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
architecture: x64
java-package: jdk
java-version: ${{ matrix.java-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install jpype1
- name: Run test targets for ${{ matrix.python-version }}
run: python -m unittest discover ./tests -p '*.py'
mac_tests:
name: MacOS - Python ${{ matrix.python-version }} with Java ${{ matrix.java-version }}
needs: [linux_tests, windows_tests]
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', 3.11]
# java-version: ['11.0.21+9', '16.0.2+7', '17.0.9+9', '18.0.2+101', '19.0.2+7', '20.0.2+9', '21.0.1+12.0.LTS']
java-version: ['11.0.21+9', '16.0.2+7', '17.0.9+9', '18.0.2+101', '19.0.2+7', '20.0.2+9']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
architecture: x64
java-package: jdk
java-version: ${{ matrix.java-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install jpype1
- name: Run test targets for ${{ matrix.python-version }}
run: python -m unittest discover ./tests -p '*.py'