feat: add session preprocessing job and dataset split utility functions #6876
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: Build and Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| react-build-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: DashAI/front | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Enable Corepack and use Yarn 3 | |
| run: corepack enable | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| cache: 'yarn' | |
| cache-dependency-path: DashAI/front/yarn.lock | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: react-build | |
| path: DashAI/front/build | |
| retention-days: 1 | |
| - run: yarn test --passWithNoTests | |
| pytest: | |
| needs: react-build-test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ${{ github.event_name == 'pull_request' && fromJson('["3.10", "3.11", "3.12", "3.13"]') || fromJson('["3.12"]') }} | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked --extra cpu --no-install-package llama-cpp-python | |
| - name: Prepare frontend build | |
| run: mkdir -p DashAI/front/build | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: react-build | |
| path: DashAI/front/build | |
| - name: Test with pytest | |
| run: uv run --no-sync pytest -v |