|
47 | 47 | # Set job outputs to values from filter step |
48 | 48 | outputs: |
49 | 49 | aws-library: ${{ steps.filter.outputs.aws-library }} |
| 50 | + celery-library: ${{ steps.filter.outputs.celery-library }} |
50 | 51 | dask-task-models-library: ${{ steps.filter.outputs.dask-task-models-library }} |
51 | 52 | models-library: ${{ steps.filter.outputs.models-library }} |
52 | 53 | common-library: ${{ steps.filter.outputs.common-library }} |
|
94 | 95 | - 'services/docker-compose*' |
95 | 96 | - 'scripts/mypy/*' |
96 | 97 | - 'mypy.ini' |
| 98 | + celery-library: |
| 99 | + - 'packages/celery-library/**' |
| 100 | + - 'packages/pytest-simcore/**' |
| 101 | + - 'services/docker-compose*' |
| 102 | + - 'scripts/mypy/*' |
| 103 | + - 'mypy.ini' |
97 | 104 | dask-task-models-library: |
98 | 105 | - 'packages/dask-task-models-library/**' |
99 | 106 | - 'packages/pytest-simcore/**' |
@@ -1035,6 +1042,49 @@ jobs: |
1035 | 1042 | with: |
1036 | 1043 | flags: unittests #optional |
1037 | 1044 |
|
| 1045 | + unit-test-celery-library: |
| 1046 | + needs: changes |
| 1047 | + if: ${{ needs.changes.outputs.celery-library == 'true' || github.event_name == 'push' || github.event.inputs.force_all_builds == 'true' }} |
| 1048 | + timeout-minutes: 18 # if this timeout gets too small, then split the tests |
| 1049 | + name: "[unit] celery-library" |
| 1050 | + runs-on: ${{ matrix.os }} |
| 1051 | + strategy: |
| 1052 | + matrix: |
| 1053 | + python: ["3.11"] |
| 1054 | + os: [ubuntu-24.04] |
| 1055 | + fail-fast: false |
| 1056 | + steps: |
| 1057 | + - uses: actions/checkout@v4 |
| 1058 | + - name: setup docker buildx |
| 1059 | + id: buildx |
| 1060 | + uses: docker/setup-buildx-action@v3 |
| 1061 | + with: |
| 1062 | + driver: docker-container |
| 1063 | + - name: setup python environment |
| 1064 | + uses: actions/setup-python@v5 |
| 1065 | + with: |
| 1066 | + python-version: ${{ matrix.python }} |
| 1067 | + - name: install uv |
| 1068 | + uses: astral-sh/setup-uv@v6 |
| 1069 | + with: |
| 1070 | + version: "0.6.x" |
| 1071 | + enable-cache: false |
| 1072 | + cache-dependency-glob: "**/celery-library/requirements/ci.txt" |
| 1073 | + - name: show system version |
| 1074 | + run: ./ci/helpers/show_system_versions.bash |
| 1075 | + - name: install |
| 1076 | + run: ./ci/github/unit-testing/celery-library.bash install |
| 1077 | + - name: typecheck |
| 1078 | + run: ./ci/github/unit-testing/celery-library.bash typecheck |
| 1079 | + - name: test |
| 1080 | + if: ${{ !cancelled() }} |
| 1081 | + run: ./ci/github/unit-testing/celery-library.bash test |
| 1082 | + - uses: codecov/codecov-action@v5 |
| 1083 | + if: ${{ !cancelled() }} |
| 1084 | + env: |
| 1085 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 1086 | + with: |
| 1087 | + flags: unittests #optional |
1038 | 1088 |
|
1039 | 1089 | unit-test-dask-task-models-library: |
1040 | 1090 | needs: changes |
@@ -1824,6 +1874,7 @@ jobs: |
1824 | 1874 | unit-test-clusters-keeper, |
1825 | 1875 | unit-test-dask-sidecar, |
1826 | 1876 | unit-test-aws-library, |
| 1877 | + unit-test-celery-library, |
1827 | 1878 | unit-test-dask-task-models-library, |
1828 | 1879 | unit-test-datcore-adapter, |
1829 | 1880 | unit-test-director-v2, |
|
0 commit comments