refactor(Task): make _prepare_test_dataset abstract; implement in all… #194
Workflow file for this run
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 workflow | ||
|
Check failure on line 1 in .github/workflows/test.yml
|
||
| on: | ||
| push: | ||
| jobs: | ||
| uv-example: | ||
| name: python | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| # HF token is required to avoid 429 rate limits on HF Hub | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| HUGGINGFACE_HUB_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| HF_DATASETS_CACHE: ${{ runner.temp }}/hf-datasets | ||
| HUGGINGFACE_HUB_CACHE: ${{ runner.temp }}/hf-hub | ||
| TRANSFORMERS_CACHE: ${{ runner.temp }}/hf-transformers | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| - name: Prepare submodules | ||
| run: git submodule update --init --recursive | ||
| - name: Install the project (dev deps) | ||
| run: uv sync --group dev | ||
| - name: Run tests (metrics) | ||
| run: uv run pytest src/eval_mm/metrics/*.py | ||
| - name: Run tests (tasks) | ||
| run: uv run pytest src/eval_mm/tasks/*.py | ||
| # Optional model smoke; enable when runners have resources | ||
| # - name: Run model smoke tests | ||
| # run: bash test_model.sh | ||