Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions on CI #242

Merged
merged 4 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
push:
branches: '*'
pull_request:
branches: '*'

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Install node
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

jasongrout marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install JupyterLab
run: |
python -m pip install jupyterlab

- name: Get yarn (jlpm) cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(jlpm cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install the extension
run: |
jlpm && jlpm run build

jupyter labextension install ./packages/fasta-extension --no-build
jupyter labextension install ./packages/geojson-extension --no-build
jupyter labextension install ./packages/katex-extension --no-build
jupyter labextension install ./packages/vega2-extension --no-build
jupyter labextension install ./packages/vega3-extension --no-build
jupyter labextension install ./packages/mathjax3-extension --no-build
jupyter lab build

- name: Check the extensions are installed
run: |
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/fasta-extension.*OK"
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/geojson-extension.*OK"
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/katex-extension.*OK"
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/vega2-extension.*OK"
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/vega3-extension.*OK"
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/mathjax3-extension.*OK"

- name: Browser check
run: python -m jupyterlab.browser_check
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Jupyter Renderers

![Github Actions Status](https://github.com/jupyterlab/jupyter-renderers/workflows/CI/badge.svg)
[![Binder](https://beta.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/jupyterlab/jupyter-renderers/master?urlpath=lab/tree/notebooks)

This is a
Expand Down