Skip to content

Commit 463f8dc

Browse files
committed
Add simple workflow to run test from short.tests
1 parent 29baa0e commit 463f8dc

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Run ant regrtest -f verbose.tests on Jython 2.7 on Java versions (GitHub action)
2+
3+
# We expect this to fail (at the time of writing) and the purpose
4+
# is to tell us on which OSes and versions of Java that happens,
5+
# with details.
6+
7+
name: Java versions regrtest 2.7 (verbose.tests)
8+
9+
# Only run manually as we don't want to block every PR.
10+
on:
11+
push:
12+
# This is here so we can test the jobs on push
13+
branches:
14+
- 'test-java-17-25-short'
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
22+
java-versions-regrtest:
23+
strategy:
24+
max-parallel: 2
25+
matrix:
26+
version: [17, 25]
27+
os: [ubuntu-latest, windows-latest]
28+
29+
runs-on: ${{ matrix.os }}
30+
timeout-minutes: 10
31+
continue-on-error: true
32+
33+
steps:
34+
- run: echo "Branch ${{ github.ref }} of repository ${{ github.repository }}."
35+
- run: echo "Java ${{ matrix.version }} on ${{ matrix.os }}."
36+
37+
# Some tests require exactly-expected line endings
38+
- run: git config --global core.autocrlf input
39+
40+
- uses: actions/checkout@v6
41+
42+
- name: Set up JDK
43+
uses: actions/setup-java@v5
44+
with:
45+
java-version: ${{ matrix.version }}
46+
distribution: 'temurin'
47+
48+
- name: Developer build with Ant
49+
run: ant -noinput -buildfile build.xml developer-build
50+
51+
- name: Specified regression tests with Ant
52+
run: dist/bin/jython -m test.regrtest -v -f verbose.tests
53+

verbose.tests

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# verbose.tests
2+
# List of tests referenced by GitHub action java-versions-verbose-tests.yml
3+
# Test with: -m test.regrtest -v -f verbose.tests
4+
5+
test_cmd_line
6+
test_float_jy
7+
test_httplib
8+
test_import_jy
9+
test_java_integration
10+
test_java_visibility # warning: Ignoring option --illegal-access=warn;
11+
test_json
12+
test_jy_internals
13+
test_jython_launcher
14+
test_socket # fails Linux (socket in use on rerun)
15+
test_socket_jy # fails Linux (socket in use on rerun)
16+
test_subprocess
17+
test_threading
18+
test_urllib2_localnet

0 commit comments

Comments
 (0)