From 6cfff0cd6cacf1f57cc48a6d9ea600740faaf975 Mon Sep 17 00:00:00 2001 From: Paul Koch Date: Wed, 24 Jul 2024 17:46:29 -0700 Subject: [PATCH] add vis, npm, R, and sdist to github actions --- .github/workflows/ci.yml | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2469950a4..394276f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,3 +84,80 @@ jobs: with: name: asm-${{ matrix.artifact_name }} path: bld/asm/ + + vis: + runs-on: ubuntu-20.04 + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Build vis + run: | + cd shared/vis + npm install + npm run build-prod + - name: Publish interpret-inline.js library + uses: actions/upload-artifact@v4 + with: + name: vis + path: shared/vis/dist + + npm: + runs-on: ubuntu-20.04 + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Build npm package + run: | + cd shared/vis + npm install + npm run build-prod + npm pack + mkdir pkg + cp *.tgz pkg/ + - name: Publish npm package + uses: actions/upload-artifact@v4 + with: + name: npm + path: shared/vis/pkg + + R: + runs-on: ubuntu-20.04 + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Build R package + run: | + cd R + sudo apt --yes update + sudo apt --yes install texlive-latex-base texlive-fonts-extra + Rscript build.R + - name: Display errors + if: failure() + run: cat bld/tmp/R/interpret.Rcheck/00install.out + - name: Publish R package + uses: actions/upload-artifact@v4 + with: + name: R + path: bld/R + + sdist: + runs-on: ubuntu-20.04 + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.9 + - name: Build sdist package + run: | + python -m pip install --upgrade pip setuptools wheel + cd python/interpret-core + python setup.py sdist -d ../../bld/sdist + cd ../interpret + python setup.py sdist -d ../../bld/sdist + - name: Publish sdist package + uses: actions/upload-artifact@v4 + with: + name: sdist + path: bld/sdist