Add issue templates to repository #404
Workflow file for this run
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: Linux JS Tests | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos] | |
group: [notebook, base, services] | |
exclude: | |
- group: services | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Cache pip on Linux | |
uses: actions/cache@v1 | |
if: startsWith(runner.os, 'Linux') | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt', 'setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ matrix.python }} | |
- name: Temporary workaround for sanitizer loading in JS Tests | |
run: | | |
cp tools/security_deprecated.js nbclassic/static/base/js/security.js | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade setuptools wheel | |
npm install | |
npm install -g casperjs@1.1.3 phantomjs-prebuilt@2.1.7 | |
pip install .[test] | |
- name: Run Tests | |
run: | | |
python -m nbclassic.jstest ${{ matrix.group }} |