Revamp voter landing page. #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 update -y | |
| sudo apt-get install -y 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 . |