Skip to content

Commit

Permalink
ENG-3777: Run Python notebooks in SDK Circle-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JMkrish committed Dec 8, 2023
1 parent f80e915 commit 4f77da8
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 2,578 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ jobs:
## ------------------ Run Unit Tests ------------------

run-unit-tests:
# Use VM over docker container
machine:
# # https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
# image: ubuntu-2204:2022.07.1
docker:
- image: cimg/python:3.11.0
steps:
Expand All @@ -51,18 +47,22 @@ jobs:
- disable_docker_hub
- attach_workspace:
at: /tmp/workspace

# - configure_environment
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Run Unit Tests
command: |
set -x
export ENV_VAR_TENANT=${ENV_VAR_TENANT}
export ENV_VAR_USERNAME=${ENV_VAR_USERNAME}
export ENV_VAR_PASSWORD=${ENV_VAR_PASSWORD}
export ENV_VAR_API_KEY=${ENV_VAR_API_KEY}
export ENV_VAR_API_SECRET=${ENV_VAR_API_SECRET}
pip install -r requirements-codecoverage.txt
pip install -e .
mkdir test-results
coverage run -m pytest --junitxml=test-results/junit.xml tests
coverage run -m pytest --nbmake --nbmake-timeout=300 -n=auto --junitxml=test-results/junit.xml tests examples
- run:
name: Compile Coverage Report
command: |
Expand Down
Loading

0 comments on commit 4f77da8

Please sign in to comment.