name: CI on: push: branches: [master] pull_request: jobs: gateway: name: Gateway plugin tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install uv run: curl -LsSf https://astral.sh/uv/install.sh | sh # The gateway tests run inside the hermes-agent test harness, which is # git-ignored in this repo (read-only research reference). CI clones the # upstream repo at a pinned commit and drops in the vendored test copy. # Bump the pinned SHA when you update the local hermes-agent checkout. - name: Clone hermes-agent (pinned) run: | git clone https://github.com/NousResearch/hermes-agent.git hermes-agent git -C hermes-agent fetch --depth 1 origin 31f62d76af068abde3c699f91190e8ded07fd05b git -C hermes-agent checkout 31f62d76af068abde3c699f91190e8ded07fd05b - name: Sync venv run: | echo "$HOME/.local/bin" >> "$GITHUB_PATH" cd hermes-agent uv sync - name: Run android gateway tests run: | cp gateway-plugin/tests/test_android.py hermes-agent/tests/gateway/test_android.py cd hermes-agent ANDROID_PLUGIN_DIR="$GITHUB_WORKSPACE/gateway-plugin" \ scripts/run_tests.sh tests/gateway/test_android.py kotlin: name: Kotlin tests (android host + desktop) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin java-version: "21" # gradle.properties pins org.gradle.java.home to a local JDK path; # strip it so CI uses the JDK installed by setup-java. - name: Strip local JDK pin run: sed -i '/^org\.gradle\.java\.home/d' app/gradle.properties - name: Install Android SDK run: | export ANDROID_HOME="$HOME/android-sdk" mkdir -p "$ANDROID_HOME/cmdline-tools" curl -fsSL -o /tmp/ct.zip \ https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip unzip -q /tmp/ct.zip -d "$ANDROID_HOME/cmdline-tools" mv "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest" yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null echo "ANDROID_HOME=$ANDROID_HOME" >> "$GITHUB_ENV" echo "sdk.dir=$ANDROID_HOME" > app/local.properties # Host-side tests only (no device needed). AGP auto-downloads the # missing SDK platforms (licenses accepted above). - name: Run host tests working-directory: app run: ./gradlew :shared:testAndroidHostTest :shared:desktopTest