fix: harden path inference with root guard and strict validation #139
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 Checking | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main, development ] | |
| jobs: | |
| mypy: | |
| name: MyPy Type Checking | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v2 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync --extra utils --group dev | |
| - name: Run MyPy | |
| run: uv run mypy src/simple_resume/ --strict | |
| ty: | |
| name: Ty Type Checking | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v2 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync --extra utils --group dev | |
| - name: Run Ty | |
| run: uv run ty check src/simple_resume/ |