Skip to content

Bump webpack from 5.76.0 to 5.94.0 #533

Bump webpack from 5.76.0 to 5.94.0

Bump webpack from 5.76.0 to 5.94.0 #533

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches: "*"
jobs:
test-backend-conda:
name: Test server with Conda Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.9"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache
CACHE_NUMBER: 3
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
${{ runner.os }}-conda-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_gator
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
show-channel-urls: true
use-only-tar-bz2: true
- name: Install dependencies
run: |
conda info
conda install -n test_gator --file requirements_dev.txt
python setup.py develop --skip-npm
# Check pip dependencies - broken for Python 3.7
# python -m pip check
shell: bash -l {0}
- name: Test the server extension
run: python -m pytest -ra mamba_gator
shell: bash -l {0}
test-backend-mamba:
name: Test server with Mamba Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
# Skip 3.9 as it is used for integration tests
python-version: ["3.7", "3.8"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache if requirements_dev.txt has not changed
CACHE_NUMBER: 1
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-mamba-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-mamba-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
${{ runner.os }}-mamba-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_gator
auto-update-conda: true
channels: conda-forge
mamba-version: "*"
python-version: ${{ matrix.python-version }}
show-channel-urls: true
use-only-tar-bz2: true
- name: Install dependencies
run: |
conda info
mamba install -n test_gator --file requirements_dev.txt
python setup.py develop --skip-npm
# Check pip dependencies - broken for Python 3.7
# python -m pip check
shell: bash -l {0}
- name: Test the server extension
run: python -m pytest -ra mamba_gator
shell: bash -l {0}
test-all-os:
name: Test Conda Python 3.7 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: true
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- "macos-latest"
- "windows-latest"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache
CACHE_NUMBER: 2
with:
path: ~/conda_pkgs_dir
key: ${{ matrix.os }}-conda-3.7-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ matrix.os }}-conda-3.7-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
${{ matrix.os }}-conda-3.7
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
env:
# Increase this value to reset cache
CACHE_NUMBER: 4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-yarn-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.CACHE_NUMBER }}
${{ runner.os }}-yarn
- name: Setup Python 3.7
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_gator
miniconda-version: "latest"
channels: conda-forge
python-version: "3.7"
show-channel-urls: true
use-only-tar-bz2: true
- name: Install dependencies
run: |
conda info
conda install -n test_gator --file requirements_dev.txt
conda install -n test_gator jupyterlab=3 "nbclassic!=0.3.3"
yarn install
python -m pip install -e .
shell: bash -l {0}
- name: Test the extension
env:
OS_RUNNER: ${{ matrix.os }}
run: |
python -m pytest mamba_gator
yarn run test
jupyter serverextension list
jupyter labextension list
if [ "${OS_RUNNER}" != "windows-latest" ]; then python -m jupyterlab.browser_check; fi
shell: bash -l {0}
test-integration:
name: All tests on Ubuntu Mamba Python 3.9
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache if requirements_dev.txt has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-mamba-3.9-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-mamba-3.9-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements_dev.txt') }}
${{ runner.os }}-mamba-3.9
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
env:
# Increase this value to reset cache
CACHE_NUMBER: 4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-yarn-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.CACHE_NUMBER }}
${{ runner.os }}-yarn-
- name: Setup Python 3.9
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_gator
auto-update-conda: true
channels: conda-forge
mamba-version: "*"
python-version: "3.9"
show-channel-urls: true
use-only-tar-bz2: true
- name: Install dependencies
run: |
conda info
mamba install -n test_gator --file requirements_dev.txt
mamba install -n test_gator coveralls jupyterlab=3 "nbclassic!=0.3.3"
yarn install
python -m pip install -e .
# Check pip dependencies
pip check
shell: bash -l {0}
- name: Test the extension
run: |
# Run linter
flake8 setup.py mamba_gator
yarn run eslint:check
# Run test
coverage run -m pytest mamba_gator
coverage report
yarn run test
jupyter serverextension list
jupyter serverextension list 2>&1 | grep "mamba_gator.*OK"
jupyter server extension list
jupyter server extension list 2>&1 | grep "mamba_gator.*OK"
jupyter labextension list
jupyter labextension list 2>&1 | grep "@mamba-org/gator-lab.*OK"
python -m jupyterlab.browser_check
shell: bash -l {0}
# - name: Install Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 2.6
# - name: Upload coverage
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# conda activate test_gator
# gem install coveralls-lcov
# pushd packages/common/
# coveralls-lcov -v -n coverage/lcov.info > ../../common-jscoverage.json
# popd
# python -m pip install --upgrade coveralls
# python -m coveralls --merge=common-jscoverage.json
# shell: bash -l {0}