|
54 | 54 | aws-library: ${{ steps.filter.outputs.aws-library }} |
55 | 55 | dask-task-models-library: ${{ steps.filter.outputs.dask-task-models-library }} |
56 | 56 | models-library: ${{ steps.filter.outputs.models-library }} |
| 57 | + common-library: ${{ steps.filter.outputs.common-library }} |
57 | 58 | notifications-library: ${{ steps.filter.outputs.notifications-library }} |
58 | 59 | postgres-database: ${{ steps.filter.outputs.postgres-database }} |
59 | 60 | service-integration: ${{ steps.filter.outputs.service-integration }} |
@@ -110,6 +111,8 @@ jobs: |
110 | 111 | - 'services/docker-compose*' |
111 | 112 | - 'scripts/mypy/*' |
112 | 113 | - 'mypy.ini' |
| 114 | + common-library: |
| 115 | + - 'packages/common-library/**' |
113 | 116 | notifications-library: |
114 | 117 | - 'packages/notifications-library/**' |
115 | 118 | - 'packages/postgres-database/**' |
@@ -1593,6 +1596,47 @@ jobs: |
1593 | 1596 | with: |
1594 | 1597 | flags: unittests #optional |
1595 | 1598 |
|
| 1599 | + unit-test-common-library: |
| 1600 | + needs: changes |
| 1601 | + if: ${{ needs.changes.outputs.common-library == 'true' || github.event_name == 'push' }} |
| 1602 | + timeout-minutes: 18 # if this timeout gets too small, then split the tests |
| 1603 | + name: "[unit] common-library" |
| 1604 | + runs-on: ${{ matrix.os }} |
| 1605 | + strategy: |
| 1606 | + matrix: |
| 1607 | + python: ["3.11"] |
| 1608 | + os: [ubuntu-22.04] |
| 1609 | + fail-fast: false |
| 1610 | + steps: |
| 1611 | + - uses: actions/checkout@v4 |
| 1612 | + - name: setup docker buildx |
| 1613 | + id: buildx |
| 1614 | + uses: docker/setup-buildx-action@v3 |
| 1615 | + with: |
| 1616 | + driver: docker-container |
| 1617 | + - name: setup python environment |
| 1618 | + uses: actions/setup-python@v5 |
| 1619 | + with: |
| 1620 | + python-version: ${{ matrix.python }} |
| 1621 | + - name: install uv |
| 1622 | + uses: yezz123/setup-uv@v4 |
| 1623 | + - uses: actions/cache@v4 |
| 1624 | + id: cache-uv |
| 1625 | + with: |
| 1626 | + path: ~/.cache/uv |
| 1627 | + key: ${{ runner.os }}-${{ github.job }}-python-${{ matrix.python }}-uv |
| 1628 | + - name: show system version |
| 1629 | + run: ./ci/helpers/show_system_versions.bash |
| 1630 | + - name: install |
| 1631 | + run: ./ci/github/unit-testing/common-library.bash install |
| 1632 | + - name: typecheck |
| 1633 | + run: ./ci/github/unit-testing/common-library.bash typecheck |
| 1634 | + - name: test |
| 1635 | + run: ./ci/github/unit-testing/common-library.bash test |
| 1636 | + |
| 1637 | + with: |
| 1638 | + flags: unittests #optional |
| 1639 | + |
1596 | 1640 | unit-test-notifications-library: |
1597 | 1641 | needs: changes |
1598 | 1642 | if: ${{ needs.changes.outputs.notifications-library == 'true' || github.event_name == 'push' }} |
@@ -1704,6 +1748,7 @@ jobs: |
1704 | 1748 | unit-test-efs-guardian, |
1705 | 1749 | unit-test-frontend, |
1706 | 1750 | unit-test-models-library, |
| 1751 | + unit-test-common-library, |
1707 | 1752 | unit-test-notifications-library, |
1708 | 1753 | unit-test-osparc-gateway-server, |
1709 | 1754 | unit-test-payments, |
|
0 commit comments