Skip to content

Commit 355cc0c

Browse files
ci(tests): Add tests
1 parent 2cd956c commit 355cc0c

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/test-action.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Jython tests"
2+
3+
run-name: "Run Jython tests"
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: "Test action"
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- windows-latest
18+
- macos-latest
19+
jython_version:
20+
- "2.7.3"
21+
- "2.7.2"
22+
- "2.7.1"
23+
- "2.7.0"
24+
- "2.5.3"
25+
- "2.5.2"
26+
- "2.5.1"
27+
- "2.5.0"
28+
- "2.2.1"
29+
- "2.2"
30+
31+
runs-on: ${{ matrix.os }}
32+
defaults:
33+
run:
34+
shell: bash
35+
steps:
36+
- uses: actions/checkout@v3
37+
38+
- name: Install Jython ${{ matrix.jython_version }}
39+
uses: LukeSavefrogs/setup-jython@v1
40+
with:
41+
jython-version: "${{ matrix.jython_version }}"
42+
43+
- name: Run Jython
44+
run: |
45+
jython -c 'import sys, os; print(os.name, sys.version)';

0 commit comments

Comments
 (0)