use 3.9 and try changing dir
@@ -15,6 +15,8 @@ jobs:
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 && \
+ 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 && \
pip3 install codecov pytype && \
find . -name requirements.txt -type f -exec pip3 install -r {} \; && \
@@ -23,7 +25,7 @@ jobs:
PYTHONPATH=. pytype . && \
PYTHONPATH=. pytest -l -s -n auto -v --cov=tests/ --cov=networkml/ --cov-report term-missing -c .coveragerc && coverage report && coverage xml && \
pip3 install . && \
- jupyter nbconvert --ExecutePreprocessor.timeout=300 --execute notebooks/networkml_exploration.ipynb && \
+ cd notebooks && jupyter nbconvert --ExecutePreprocessor.timeout=300 --to notebook --execute networkml_exploration.ipynb && cd .. && \
./tests/test_e2e.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.5.2
