Release 3.8.0 with Bokeh version 3.8.0 #99
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] | |
# Allows workflow to be called from other workflows | |
workflow_call: | |
inputs: | |
ref: | |
required: true | |
type: string | |
# Avoid duplicate workflows on same branch | |
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-bokeh code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
persist-credentials: false | |
submodules: "recursive" | |
fetch-depth: 2 | |
- name: Enable and Prepare Latest Yarn | |
run: | | |
corepack enable | |
cd streamlit_bokeh/frontend | |
corepack install | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
cache-dependency-path: "**/yarn.lock" | |
- name: Run frontend tests | |
run: | | |
cd streamlit_bokeh/frontend | |
yarn install --immutable | |
yarn test | |
- name: Audit frontend licenses | |
run: python scripts/audit_frontend_licenses.py | |
- name: Validate NOTICES | |
run: | | |
# Run script to make the notices. If it results in changes, warn the user and fail. | |
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 |