fix(dataloader): switch to forkserver context + add timeout + explicit teardown (closes #140, partial #145) #400
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: Test ML pipeline | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Set up Python 3.10 | |
| run: uv python install 3.10 | |
| - name: Install dependencies | |
| run: uv sync --no-default-groups | |
| - name: Cache ML models | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.config/AMI/models | |
| key: ml-models-v1 | |
| - name: Run ML tests | |
| run: | | |
| uv run ami test pipeline |