Installing CML directly in CI environment is not typically needed, as comes
pre-installed in our provided Docker Images. Alternatively, GitHub users can
use the setup-cml action.
CML can be installed directly as a Node.js package using
npm.
Details
Install Node.js from source:
$ curl -sL https://deb.nodesource.com/setup_16.x | bash
$ apt-get update
$ apt-get install -y nodejs
Node.js is likely already available in most GitHub Actions runners. However, to install a particular version, add the following step to your workflow:
- uses: actions/setup-node@v1
with:
node-version: '16'$ npm i -g @dvcorg/cml
To use DVC plots, you need to install these additional dependencies:
$ sudo apt-get install -y \
libcairo2-dev libfontconfig-dev \
libgif-dev libjpeg-dev libpango1.0-dev librsvg2-dev
$ npm install -g vega-cli vega-lite