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:
Robert Brennan 2024-04-27 14:34:07 -04:00 committed by GitHub
parent 9c9aee29f0
commit d1f62bb6be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 43 additions and 6 deletions

View File

@ -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!

View File

@ -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

View File

@ -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!

View File

@ -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!