|
62 | 62 | settings-library: ${{ steps.filter.outputs.settings-library }} |
63 | 63 | simcore-sdk: ${{ steps.filter.outputs.simcore-sdk }} |
64 | 64 | agent: ${{ steps.filter.outputs.agent }} |
| 65 | + notifications: ${{ steps.filter.outputs.notifications }} |
65 | 66 | api: ${{ steps.filter.outputs.api }} |
66 | 67 | api-server: ${{ steps.filter.outputs.api-server }} |
67 | 68 | autoscaling: ${{ steps.filter.outputs.autoscaling }} |
@@ -150,6 +151,12 @@ jobs: |
150 | 151 | - 'services/docker-compose*' |
151 | 152 | - 'scripts/mypy/*' |
152 | 153 | - 'mypy.ini' |
| 154 | + notifications: |
| 155 | + - 'packages/**' |
| 156 | + - 'services/notifications/**' |
| 157 | + - 'services/docker-compose*' |
| 158 | + - 'scripts/mypy/*' |
| 159 | + - 'mypy.ini' |
153 | 160 | api: |
154 | 161 | - 'api/**' |
155 | 162 | api-server: |
@@ -602,6 +609,49 @@ jobs: |
602 | 609 | with: |
603 | 610 | flags: unittests #optional |
604 | 611 |
|
| 612 | + unit-test-notifications: |
| 613 | + needs: changes |
| 614 | + if: ${{ needs.changes.outputs.notifications == 'true' || github.event_name == 'push' }} |
| 615 | + timeout-minutes: 18 # if this timeout gets too small, then split the tests |
| 616 | + name: "[unit] notifications" |
| 617 | + runs-on: ${{ matrix.os }} |
| 618 | + strategy: |
| 619 | + matrix: |
| 620 | + python: ["3.11"] |
| 621 | + os: [ubuntu-24.04] |
| 622 | + fail-fast: false |
| 623 | + steps: |
| 624 | + - uses: actions/checkout@v4 |
| 625 | + - name: setup docker buildx |
| 626 | + id: buildx |
| 627 | + uses: docker/setup-buildx-action@v3 |
| 628 | + with: |
| 629 | + driver: docker-container |
| 630 | + - name: setup python environment |
| 631 | + uses: actions/setup-python@v5 |
| 632 | + with: |
| 633 | + python-version: ${{ matrix.python }} |
| 634 | + - name: install uv |
| 635 | + uses: astral-sh/setup-uv@v5 |
| 636 | + with: |
| 637 | + version: "0.5.x" |
| 638 | + enable-cache: false |
| 639 | + cache-dependency-glob: "**/notifications/requirements/ci.txt" |
| 640 | + - name: show system version |
| 641 | + run: ./ci/helpers/show_system_versions.bash |
| 642 | + - name: install |
| 643 | + run: ./ci/github/unit-testing/notifications.bash install |
| 644 | + - name: typecheck |
| 645 | + run: ./ci/github/unit-testing/notifications.bash typecheck |
| 646 | + - name: test |
| 647 | + if: ${{ !cancelled() }} |
| 648 | + run: ./ci/github/unit-testing/notifications.bash test |
| 649 | + - uses: codecov/codecov-action@v5 |
| 650 | + if: ${{ !cancelled() }} |
| 651 | + env: |
| 652 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 653 | + with: |
| 654 | + flags: unittests #optional |
605 | 655 |
|
606 | 656 | unit-test-api: |
607 | 657 | needs: changes |
@@ -1834,6 +1884,7 @@ jobs: |
1834 | 1884 | unit-test-common-library, |
1835 | 1885 | unit-test-notifications-library, |
1836 | 1886 | unit-test-payments, |
| 1887 | + unit-test-notifications, |
1837 | 1888 | unit-test-dynamic-scheduler, |
1838 | 1889 | unit-test-postgres-database, |
1839 | 1890 | unit-test-python-linting, |
|
0 commit comments