-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.79 KB
/
run-jython-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
# https://search.maven.org/artifact/org.python/jython
# https://search.maven.org/artifact/org.python/jython-installer
# https://search.maven.org/artifact/org.python/jython-standalone
# https://search.maven.org/artifact/org.python/jython-slim
# https://sourceforge.net/projects/jython/files/jython/
# Workflow inspired by:
# https://github.com/jython/jython/blob/master/.github/workflows/launcher-test.yml
name: "Jython tests"
run-name: "Run Jython tests"
on:
push:
pull_request:
jobs:
test:
name: "Test"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
jython_version:
- "2.7.3"
- "2.7.2"
- "2.7.1"
- "2.7.0"
- "2.5.3"
- "2.5.2"
- "2.5.1"
- "2.5.0"
- "2.2.1"
- "2.2"
include:
- os: windows-latest
jython_version: "2.1"
# - os: windows-latest
# jython_version: "2.0"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install Jython ${{ matrix.jython_version }}
uses: LukeSavefrogs/setup-jython@v3
with:
jython-version: "${{ matrix.jython_version }}"
- name: Run Jython
# if: ${{ ! runner.os == 'Windows' }}
run: |
jython ./scripts/run_tests.py --verbose --pattern "*.py" --start-directory "./src/polyfills/"
# - name: Run Jython (Windows)
# if: ${{ runner.os == 'Windows' }}
# shell: pwsh
# run: |
# echo "$env:PATH"
# echo "$env:GITHUB_PATH"
# jython ./scripts/run_tests.py --verbose --pattern "*.py" --start-directory "./src/polyfills/"