| name: "Unit tests" |
| |
| on: |
| push: |
| branches: [frontend] |
| pull_request: |
| # The branches below must be a subset of the branches above |
| branches: [frontend] |
| |
| permissions: {} |
| |
| jobs: |
| unittests: |
| name: "Run unit tests" |
| runs-on: ubuntu-latest |
| |
| steps: |
| - name: Checkout repository |
| uses: actions/checkout@v7 |
| with: |
| persist-credentials: false |
| fetch-depth: 0 |
| |
| - name: Install LDAP build dependencies |
| run: | |
| sudo apt-get update |
| sudo apt-get install -y --no-install-recommends libldap2-dev libsasl2-dev |
| |
| - name: Install uv |
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 |
| |
| - name: Run tests |
| run: uv sync --frozen --no-dev --python 3.12 && uv run pytest |