summaryrefslogtreecommitdiff
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-02-12 13:28:53 -0800
committerGitHub <noreply@github.com>2022-02-12 13:28:53 -0800
commit6356aa954724dddbbd4686f16f4c3b070beb8a62 (patch)
tree5466bc7f8e02d2a829732f1dbbf54d61b60ba768 /.circleci/config.yml
parent76ecf13278eb8afda33d4450d2cf0727b5314bd1 (diff)
downloadnetworkx-6356aa954724dddbbd4686f16f4c3b070beb8a62.tar.gz
Use pytest-mpl (#4579)
* Use pytest-mpl * Try circleci * New * Fix * Fix test * Add documentation * Install default requirments on Circle CI * Install pytest on circle CI * Update python image * Test house w/ colors Co-authored-by: Mridul Seth <mail@mriduls.com>
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml46
1 files changed, 42 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 25716d5f..eb85c36c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,11 +1,11 @@
# See: https://circleci.com/docs/2.0/language-python/
-version: 2
+version: 2.1
jobs:
- build:
- working_directory: ~/repo
+
+ documentation:
docker:
- - image: cimg/python:3.8
+ - image: cimg/python:3.9
steps:
- checkout
@@ -69,3 +69,41 @@ jobs:
- store_artifacts:
path: doc/build/html
+
+ image:
+ docker:
+ - image: cimg/python:3.9
+
+ steps:
+ - checkout
+
+ - run:
+ name: Install Python dependencies
+ command: |
+ python -m venv venv
+ source venv/bin/activate
+ pip install --upgrade pip wheel setuptools
+ pip install -r requirements/default.txt -r requirements/test.txt
+ pip list
+
+ - run:
+ name: Install
+ command: |
+ source venv/bin/activate
+ pip install -e .
+
+ - run:
+ name: Test NetworkX drawing
+ command: |
+ source venv/bin/activate
+ pytest --mpl --mpl-generate-summary=html --mpl-results-path=results --pyargs networkx.drawing
+
+ - store_artifacts:
+ path: results
+
+
+workflows:
+ documentation_and_image_comparison:
+ jobs:
+ - documentation
+ - image