Skip to content
Snippets Groups Projects
Commit db58de1a authored by MasterScrat's avatar MasterScrat
Browse files

Merge branch 'parallelize-ci-cd-pipeline' into 'master'

Optimize CI/CD pipeline for faster testing

See merge request flatland/flatland!313
parents deeb642c 6bfa6abd
No related branches found
No related tags found
No related merge requests found
...@@ -15,14 +15,11 @@ stages: ...@@ -15,14 +15,11 @@ stages:
- profiling - profiling
- benchmarks - benchmarks
- deploy_docs - deploy_docs
cache:
paths:
- .tox
before_script: before_script:
- echo "Setting Up...." - echo "Setting Up...."
tests: .test-setup: &test-setup
stage: tests stage: tests
services: services:
- redis - redis
...@@ -34,9 +31,37 @@ tests: ...@@ -34,9 +31,37 @@ tests:
- export PATH=/tmp/miniconda3/bin:$PATH - export PATH=/tmp/miniconda3/bin:$PATH
- pip install tox awscli - pip install tox awscli
- conda update -n root conda -y - 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: script:
- xvfb-run tox -v --recreate - xvfb-run tox -v --recreate -e coverage
build_and_deploy_docs: build_and_deploy_docs:
image: "python:latest" image: "python:latest"
...@@ -44,7 +69,7 @@ build_and_deploy_docs: ...@@ -44,7 +69,7 @@ build_and_deploy_docs:
only: only:
- master - master
dependencies: dependencies:
- tests - test-docs
before_script: before_script:
- apt update - apt update
- apt install -y libgl1-mesa-glx xvfb xdg-utils libcairo2-dev libjpeg-dev libgif-dev graphviz libgraphviz-dev python-pyglet - 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: ...@@ -66,7 +91,11 @@ build_and_deploy_docs:
profiling: profiling:
dependencies: dependencies:
- tests - test-py36
- test-py37
- test-examples
- test-notebooks
- test-coverage
stage: profiling stage: profiling
only: only:
variables: variables:
...@@ -85,7 +114,11 @@ profiling: ...@@ -85,7 +114,11 @@ profiling:
benchmarks: benchmarks:
dependencies: dependencies:
- tests - test-py36
- test-py37
- test-examples
- test-notebooks
- test-coverage
stage: benchmarks stage: benchmarks
only: only:
variables: variables:
......
...@@ -17,7 +17,7 @@ jupyter>=1.0.0 ...@@ -17,7 +17,7 @@ jupyter>=1.0.0
jupyter-core>=4.5.0 jupyter-core>=4.5.0
jupyter-contrib-nbextensions jupyter-contrib-nbextensions
notebook>=5.7.8 notebook>=5.7.8
PyVirtualDisplay==0.2.5 PyVirtualDisplay==1.3.2
pytest-xvfb>=1.2.0 pytest-xvfb==2.0.0
git+https://github.com/who8mylunch/Jupyter_Canvas_Widget.git@bd151ae1509c50b5809944dd3294f58b7b069c86 git+https://github.com/who8mylunch/Jupyter_Canvas_Widget.git@bd151ae1509c50b5809944dd3294f58b7b069c86
m2r>=0.2.1 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