Fix make test silently passing when pytest fails (#208) #590
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "pull-request/[0-9]+" | |
| jobs: | |
| test: | |
| runs-on: linux-amd64-gpu-l4-latest-1 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Verify environment | |
| run: | | |
| nvidia-smi | |
| python3 --version | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-groups | |
| uv pip install torch==2.10 | |
| - run: make test | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} |