From 359ba2d2f37a9d9ab2b739e13f1e82aa3adef65c Mon Sep 17 00:00:00 2001 From: Donato Meoli Date: Mon, 30 Nov 2026 00:26:11 +0100 Subject: [PATCH 1/3] Run the aima-core tests on GitHub Actions instead of Travis CI --- .github/workflows/test.yml | 18 ++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..7001bd4377 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test + +on: + push: + branches: [AIMA3e] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: "17" + cache: maven + - run: mvn -B -f aima-core/pom.xml test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 45661d28f7..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -before_install: cd aima-core - -language: java -jdk: - - oraclejdk8 - -script: ant aima-core.test-all From 47a4ec02f1b435f37fe42787f9f9ba2fc8ac5f3d Mon Sep 17 00:00:00 2001 From: Donato Meoli Date: Mon, 30 Nov 2026 00:26:18 +0100 Subject: [PATCH 2/3] README: the same header and footer as the other aimacode projects --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b0fd303415..d1a09e19b6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -# ![](https://github.com/aimacode/aima-java/blob/gh-pages/aima3e/images/aima3e.jpg)AIMA3e-Java (JDK 8+) [![Build Status](https://travis-ci.org/aimacode/aima-java.svg?branch=AIMA3e)](https://travis-ci.org/aimacode/aima-java) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/aimacode/aima-java/AIMA3e) -Java implementation of algorithms from [Russell](http://www.cs.berkeley.edu/~russell/) and [Norvig's](http://www.norvig.com/) [Artificial Intelligence - A Modern Approach 3rd Edition](http://aima.cs.berkeley.edu/). You can use this in conjunction with a course on AI, or for study on your own. We're looking for [solid contributors](https://github.com/aimacode/aima-java/wiki/AIMAJava-Contributing) to help. +# `aima-java` [![test](https://github.com/aimacode/aima-java/actions/workflows/test.yml/badge.svg)](https://github.com/aimacode/aima-java/actions/workflows/test.yml) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/aimacode/aima-java/AIMA3e) + +Java code (JDK 8+) for the book *[Artificial Intelligence: A Modern Approach](https://aima.cs.berkeley.edu)*, 3rd edition. You can use this in conjunction with a course on AI, or for study on your own. We're looking for [solid contributors](https://github.com/aimacode/aima-java/wiki/AIMAJava-Contributing) to help. ### Getting Started Links * [Overview of Project](https://github.com/aimacode/aima-java/wiki/AIMA3e-Overview) @@ -153,3 +154,7 @@ Here is a table of the data structures yet to be implemented. |11.4|407|REFINEMENT-HIGH-LEVEL-ACTIONS|---| |23.6|895|SENTENCE-TREE|---| |29.1|1062|POWERS-OF-2|---| + +## Other aimacode projects + +[`aima-python`](https://github.com/aimacode/aima-python) · [`aima-csharp`](https://github.com/aimacode/aima-csharp) · [`aima-scala`](https://github.com/aimacode/aima-scala) · [`aima-julia`](https://github.com/aimacode/aima-julia) · [`aima-lisp`](https://github.com/aimacode/aima-lisp) · [`aima-javascript`](https://github.com/aimacode/aima-javascript) · [`aima-pseudocode`](https://github.com/aimacode/aima-pseudocode) · [`aima-exercises`](https://github.com/aimacode/aima-exercises) · [`aima-data`](https://github.com/aimacode/aima-data) · [`aima-glossary`](https://github.com/aimacode/aima-glossary) From 1a150fe98b223e494176db1cd1c156944282a21c Mon Sep 17 00:00:00 2001 From: Donato Meoli Date: Mon, 30 Nov 2026 00:27:28 +0100 Subject: [PATCH 3/3] Compile with language level 17 in CI: the code uses Java 9+ features --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7001bd4377..e40e31b1f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,4 +15,5 @@ jobs: distribution: temurin java-version: "17" cache: maven - - run: mvn -B -f aima-core/pom.xml test + # the code uses Java 9+ features, while pom.xml still says 1.8 + - run: mvn -B -f aima-core/pom.xml -Dtarget.jdk.version=17 test