Release version 2.62.4 #3275
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 and lint | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Run test suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| load: true | |
| tags: test | |
| target: dev | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Run unit tests | |
| run: docker run -v $PWD:/app test pytest | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install torch --extra-index-url https://download.pytorch.org/whl/cpu | |
| pip install .[dev] | |
| - name: Run pre-commit checks | |
| run: pre-commit run --all-files --show-diff-on-failure |