forked from jython/jython
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjava-versions-verbose-tests.yml
More file actions
83 lines (67 loc) · 2.37 KB
/
Copy pathjava-versions-verbose-tests.yml
File metadata and controls
83 lines (67 loc) · 2.37 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
# Run ant regrtest -f verbose.tests on Jython 2.7 on Java versions (GitHub action)
# We expect this to fail (at the time of writing) and the purpose
# is to tell us on which OSes and versions of Java that happens,
# with details.
name: Java versions regrtest 2.7 (verbose tests)
# Only run manually as we don't want to block every PR.
on:
workflow_dispatch:
# So we may run on demand (with a chosen file)
inputs:
tests_file:
description: 'File containing the names of tests to run'
type: string
required: true
default: 'verbose.tests'
permissions:
contents: read
jobs:
java-versions-regrtest:
strategy:
max-parallel: 2
matrix:
version: [25, 17]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
continue-on-error: true
steps:
- run: echo "Branch ${{ github.ref }} of repository ${{ github.repository }}."
- run: echo "Java ${{ matrix.version }} on ${{ matrix.os }}."
# Some tests require Python 2.7 available (not sure it is)
- name: Install pyenv for choice of Python version.
# See https://github.com/pyenv/pyenv#installation
run: |
curl -sSL https://pyenv.run | bash
# Manual equivalent of "pyenv init --install".
# Add to subsequent environments through GITHUB_ variables (files)
echo "PYENV_ROOT=$HOME/.pyenv" >> "$GITHUB_ENV"
echo "$HOME/.pyenv/bin" >> "$GITHUB_PATH"
echo "$HOME/.pyenv/shims" >> "$GITHUB_PATH"
- name: Check pyenv has taken.
# See https://github.com/pyenv/pyenv#installation
run: |
echo BASH_ENV = "$BASH_ENV"
echo PYENV_ROOT = "$PYENV_ROOT"
echo PATH = "$PATH"
pyenv versions
- name: Ensure Python 2.7 available
run: |
pyenv install 2.7
pyenv versions
pyenv global 2.7
python -V
# Some tests require exactly-expected line endings
- run: git config --global core.autocrlf input
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'
- name: Developer build with Ant
run: ant -noinput -buildfile build.xml developer-build
- name: Specified regression tests with Ant
run: |
python -V
dist/bin/jython -m test.regrtest -v -f ${{ inputs.tests_file }}