Refactor components to utilize theme palette for consistent styling #3831
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: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/cache@v3 | |
| with: | |
| path: ${{ env.pythonLocation }} | |
| key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }} | |
| - name: Upgrade pip tools | |
| run: python -m pip install --upgrade pip setuptools wheel | |
| - run: python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt | |
| - run: python -m pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt | |
| - 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: pytest -v |