Bump jupyter-server from 1.21.0 to 2.7.2 #2060
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: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test | |
run: | | |
export DEBIAN_FRONTEND=noninteractive && \ | |
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections && \ | |
sudo apt-get update && \ | |
sudo apt-get install -yq --no-install-recommends python3-wheel python3.9 python3.9-dev python3-setuptools dialog apt-utils tshark jq curl && \ | |
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \ | |
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && \ | |
python3 -m pip install --upgrade pip && \ | |
curl -sSL https://install.python-poetry.org | python3 - --version 1.1.15 && \ | |
export PATH=/home/runner/.local/bin:$PATH && \ | |
poetry config virtualenvs.create false && \ | |
poetry install -E test && \ | |
PYTHONPATH=. pytype . && \ | |
PYTHONPATH=. pytest -l -s -n auto -v --cov=tests/ --cov=networkml/ --cov-report term-missing -c .coveragerc --rabbitmq-port=5672 && coverage report && coverage xml && \ | |
jupyter nbconvert --ExecutePreprocessor.timeout=300 --to notebook --execute notebooks/networkml_exploration.ipynb && \ | |
./tests/test_e2e.sh | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
if: github.repository == 'iqtlabs/networkml' |