Add support for custom scatter markers #6387
This file contains 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: BokehJS-CI | |
on: | |
push: | |
branches: | |
- main | |
- branch-* | |
pull_request: | |
env: | |
CHROME_VER: "118.0.5993.88" | |
CHROME_REV: "chromium_2670" | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
max-parallel: 3 | |
matrix: | |
os: [ubuntu-24.04, macos-latest, windows-latest] | |
node-version: [20.x] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Upgrade npm | |
shell: bash | |
run: | | |
npm install --location=global npm | |
- name: Install chromium | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
INSTALLED=$(chromium --version | cut -d' ' -f2 | cut -d'.' -f1-3) | |
EXPECTED=$(echo "$CHROME_VER" | cut -d'.' -f1-3) | |
echo "Currently installed Chromium ${INSTALLED}.*; expected ${EXPECTED}.*" | |
if [[ "$INSTALLED" = "$EXPECTED" ]]; then | |
echo "Using pre-installed version of chromium" | |
else | |
URL=https://github.com/bokeh/chromium/raw/main/linux/$CHROME_VER | |
wget --no-verbose $URL/$CHROME_REV.assert | |
wget --no-verbose $URL/$CHROME_REV.snap | |
sudo snap ack $CHROME_REV.assert | |
sudo snap install $CHROME_REV.snap | |
fi | |
- name: Install dependencies | |
working-directory: ./bokehjs | |
shell: bash | |
run: | | |
npm ci --no-progress | |
- name: List installed software | |
working-directory: ./bokehjs | |
shell: bash | |
run: | | |
node make test:info | |
npm list | |
- name: Build bokehjs | |
working-directory: ./bokehjs | |
shell: bash | |
run: | | |
node make build | |
- name: Run tests | |
# restore Windows and OSX support when https://github.com/bokeh/bokeh/issues/14117 is fixed | |
if: runner.os == 'Linux' && (success() || failure()) | |
working-directory: ./bokehjs | |
shell: bash | |
run: | | |
node make test | |
- name: Lint codebase | |
if: success() || failure() | |
working-directory: ./bokehjs | |
shell: bash | |
run: | | |
node make lint | |
- name: Check repository status | |
if: success() || failure() | |
shell: bash | |
run: | | |
OUTPUT=$(git status --short bokehjs -- ':!bokehjs/test/baselines') | |
if [[ ! -z "$OUTPUT" ]]; then echo $OUTPUT; exit 1; fi | |
- name: Collect results | |
if: runner.os == 'Linux' && (success() || failure()) | |
shell: bash | |
run: | | |
SRC="bokehjs/test/baselines/linux" | |
DST="bokehjs-report/${SRC}" | |
mkdir -p ${DST} | |
if [[ -e ${SRC}/report.json ]]; | |
then | |
CHANGED=$(git status --short ${SRC}/\*.blf ${SRC}/\*.png | cut -c4-) | |
cp ${SRC}/report.{json,out} ${CHANGED} ${DST} | |
fi | |
- name: Upload package | |
if: runner.os == 'Linux' && (success() || failure()) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bokehjs-package | |
path: bokehjs/build/dist/bokeh-bokehjs-*.tgz | |
- name: Upload report | |
if: runner.os == 'Linux' && (success() || failure()) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bokehjs-report | |
path: bokehjs-report |