diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d5d941e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,54 @@ +# This config was automatically generated from your source code +# Stacks detected: cicd:github-actions:.github/workflows,deps:node:.,deps:python:test/monte-carlo,package_manager:pipenv:test/monte-carlo +version: 2.1 +orbs: + node: circleci/node@5 + python: circleci/python@2 +jobs: + test-node: + # Install node dependencies and run tests + executor: node/default + steps: + - checkout + - node/install-packages: + pkg-manager: npm + - run: + name: Run tests + command: npm test --passWithNoTests + test-python: + # Install dependencies and run tests + docker: + - image: cimg/python:3.11-node + working_directory: ~/project/test/monte-carlo + steps: + - checkout: + path: ~/project + - python/install-packages: + args: --dev + pkg-manager: pipenv + - run: + name: Run tests + command: pipenv run pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.') + - store_test_results: + path: junit.xml + deploy: + # This is an example deploy job, not actually used by the workflow + docker: + - image: cimg/base:stable + steps: + # Replace this with steps to deploy to users + - run: + name: deploy + command: '#e.g. ./deploy.sh' + - run: + name: found github actions config + command: ':' +workflows: + build-and-test: + jobs: + - test-node + - test-python + # - deploy: + # requires: + # - test-node + # - test-python