Skip to content

Commit

Permalink
CircleCI Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhodl committed Nov 7, 2024
1 parent 9c7fc37 commit 95d79bd
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 95d79bd

Please sign in to comment.