Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Add final step for matrix tests, some cleanup (#1408)

Robert Brennand1f62bb6be6a
diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml
index e1e348ccd8..3b131d9746 100644
--- a/.github/workflows/ghcr.yml
+++ b/.github/workflows/ghcr.yml
@@ -38,3 +38,10 @@ jobs:
run: |
ORG_NAME=$(echo "${{ github.repository }}" | tr '[A-Z]' '[a-z]' | cut -d '/' -f 1)
./containers/build.sh ${{ matrix.image }} $ORG_NAME --push
+
+ docker_build_success:
+ name: Docker Build Success
+ runs-on: ubuntu-latest
+ needs: ghcr_build_and_push
+ steps:
+ - run: echo Done!
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index deffe5c62e..b95514649c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,9 +1,14 @@
name: Lint
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - main
+ pull_request:
jobs:
lint-frontend:
+ name: Lint frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml
index 8ff0314e14..b476b27c47 100644
--- a/.github/workflows/run-integration-tests.yml
+++ b/.github/workflows/run-integration-tests.yml
@@ -1,9 +1,14 @@
name: Run Integration Tests
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - main
+ pull_request:
jobs:
- on-linux:
+ integration-tests:
+ name: Integration Tests
runs-on: ubuntu-latest
strategy:
matrix:
@@ -74,3 +79,10 @@ jobs:
rm -rf workspace
mkdir workspace
WORKSPACE_BASE="$GITHUB_WORKSPACE/workspace" WORKSPACE_MOUNT_PATH="$GITHUB_WORKSPACE/workspace" poetry run pytest -s ./tests/integration
+
+ test_matrix_success:
+ name: All Integration Tests Passed
+ runs-on: ubuntu-latest
+ needs: [integration-tests]
+ steps:
+ - run: echo Done!
diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml
index fc6e6cf365..16bb0cc470 100644
--- a/.github/workflows/run-unit-tests.yml
+++ b/.github/workflows/run-unit-tests.yml
@@ -1,9 +1,14 @@
name: Run Unit Tests
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - main
+ pull_request:
jobs:
- on-macos:
+ test-on-macos:
+ name: Test on macOS
runs-on: macos-13
strategy:
matrix:
@@ -27,7 +32,8 @@ jobs:
run: make build
- name: Run Tests
run: poetry run pytest ./tests/unit
- on-linux:
+ test-on-linux:
+ name: Test on Linux
runs-on: ubuntu-latest
strategy:
matrix:
@@ -45,3 +51,10 @@ jobs:
run: make build
- name: Run Tests
run: poetry run pytest ./tests/unit
+
+ test_matrix_success:
+ name: All Mac/Linux Tests Passed
+ runs-on: ubuntu-latest
+ needs: [test-on-macos, test-on-linux]
+ steps:
+ - run: echo Done!