| name: Type Tests |
| |
| on: |
| push: |
| branches: [ trunk ] |
| paths: |
| - 'v3/**/*.py' |
| - '**/type-tests.yml' |
| - 'v3/pyproject.toml' |
| pull_request: |
| branches: [ trunk ] |
| workflow_dispatch: |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v5 |
| with: |
| persist-credentials: false |
| - name: Set up Python |
| uses: actions/setup-python@v6 |
| with: |
| python-version-file: v3/pyproject.toml |
| - name: Install uv |
| uses: astral-sh/setup-uv@v6 |
| - name: Install dependencies |
| working-directory: v3 # Set the working directory to v3 where pyproject.toml is located |
| run: | |
| sudo apt-get install libldap2-dev libsasl2-dev |
| uv sync --all-extras --dev |
| - name: Type testing with mypy |
| working-directory: v3 # Ensure mypy runs in the correct directory |
| run: uv run mypy --cache-dir /tmp/ --ignore-missing-imports . |