mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Add final step for matrix tests, some cleanup (#1408)
* add final step for matrix tests * change test names * add names * change run conditions * fix test names
This commit is contained in:
parent
9c9aee29f0
commit
d1f62bb6be
7
.github/workflows/ghcr.yml
vendored
7
.github/workflows/ghcr.yml
vendored
@ -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!
|
||||
|
||||
7
.github/workflows/lint.yml
vendored
7
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
||||
16
.github/workflows/run-integration-tests.yml
vendored
16
.github/workflows/run-integration-tests.yml
vendored
@ -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!
|
||||
|
||||
19
.github/workflows/run-unit-tests.yml
vendored
19
.github/workflows/run-unit-tests.yml
vendored
@ -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!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user