Bump version to 0.4.0 #130
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: TS Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_call: | |
| inputs: | |
| ref: | |
| required: true | |
| type: string | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-ts-tests | |
| cancel-in-progress: true | |
| jobs: | |
| ts-tests: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout streamlit-pivot-table code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.ref }} | |
| persist-credentials: false | |
| submodules: "recursive" | |
| fetch-depth: 2 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| cache-dependency-path: "**/package-lock.json" | |
| - name: Install frontend dependencies | |
| run: | | |
| cd streamlit_pivot/frontend | |
| npm ci | |
| - name: Run frontend tests with coverage | |
| run: | | |
| cd streamlit_pivot/frontend | |
| npm test -- --coverage | |
| - name: Restore TS benchmark baseline | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: streamlit_pivot/frontend/bench-baseline.json | |
| key: perf-baseline-ts-v2-${{ runner.os }} | |
| - name: Run frontend bench regression check | |
| run: | | |
| cd streamlit_pivot/frontend | |
| npm run bench:check | |
| - name: Save TS benchmark baseline | |
| if: github.ref == 'refs/heads/main' && success() | |
| run: cp streamlit_pivot/frontend/bench-results.json streamlit_pivot/frontend/bench-baseline.json | |
| - name: Cache TS benchmark baseline | |
| if: github.ref == 'refs/heads/main' && success() | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: streamlit_pivot/frontend/bench-baseline.json | |
| key: perf-baseline-ts-v2-${{ runner.os }} | |
| - name: Audit frontend licenses | |
| run: python scripts/audit_frontend_licenses.py | |
| - name: Validate NOTICES | |
| run: | | |
| python scripts/make_notices.py | |
| git_status=$(git status --porcelain -- NOTICES) | |
| if [[ -n $git_status ]]; then | |
| echo "::error::The NOTICES file is out of date! Please run \`make notices\` and commit the result." | |
| echo "::group::git diff NOTICES" | |
| git diff NOTICES | |
| echo "::endgroup::" | |
| exit 1 | |
| else | |
| echo "NOTICES is up to date." | |
| fi | |
| - name: Upload new NOTICES | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: NOTICES | |
| path: NOTICES |