Skip to content
Snippets Groups Projects
Commit 6bfa6abd authored by jyotish's avatar jyotish Committed by MasterScrat
Browse files

Optimize CI/CD pipeline for faster testing

parent deeb642c
No related branches found
No related tags found
No related merge requests found
......@@ -15,14 +15,11 @@ stages:
- profiling
- benchmarks
- deploy_docs
cache:
paths:
- .tox
before_script:
- echo "Setting Up...."
tests:
.test-setup: &test-setup
stage: tests
services:
- redis
......@@ -34,9 +31,37 @@ tests:
- export PATH=/tmp/miniconda3/bin:$PATH
- pip install tox awscli
- conda update -n root conda -y
- conda install -c conda-forge tox-conda
- conda install -c conda-forge tox-conda -y
test-py36:
<<: *test-setup
script:
- xvfb-run tox -v --recreate -e py36
test-py37:
<<: *test-setup
script:
- xvfb-run tox -v --recreate -e py37
test-examples:
<<: *test-setup
script:
- xvfb-run tox -v --recreate -e examples
test-notebooks:
<<: *test-setup
script:
- xvfb-run tox -v --recreate -e notebooks
test-docs:
<<: *test-setup
script:
- xvfb-run tox -v --recreate -e docs
test-coverage:
<<: *test-setup
script:
- xvfb-run tox -v --recreate
- xvfb-run tox -v --recreate -e coverage
build_and_deploy_docs:
image: "python:latest"
......@@ -44,7 +69,7 @@ build_and_deploy_docs:
only:
- master
dependencies:
- tests
- test-docs
before_script:
- apt update
- apt install -y libgl1-mesa-glx xvfb xdg-utils libcairo2-dev libjpeg-dev libgif-dev graphviz libgraphviz-dev python-pyglet
......@@ -66,7 +91,11 @@ build_and_deploy_docs:
profiling:
dependencies:
- tests
- test-py36
- test-py37
- test-examples
- test-notebooks
- test-coverage
stage: profiling
only:
variables:
......@@ -85,7 +114,11 @@ profiling:
benchmarks:
dependencies:
- tests
- test-py36
- test-py37
- test-examples
- test-notebooks
- test-coverage
stage: benchmarks
only:
variables:
......
......@@ -17,7 +17,7 @@ jupyter>=1.0.0
jupyter-core>=4.5.0
jupyter-contrib-nbextensions
notebook>=5.7.8
PyVirtualDisplay==0.2.5
pytest-xvfb>=1.2.0
PyVirtualDisplay==1.3.2
pytest-xvfb==2.0.0
git+https://github.com/who8mylunch/Jupyter_Canvas_Widget.git@bd151ae1509c50b5809944dd3294f58b7b069c86
m2r>=0.2.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment