Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This config was automatically generated from your source code
# Stacks detected: deps:python:.,file:setup.py:.
version: 2.1
orbs:
python: circleci/python@2
jobs:
test-python:
# Install dependencies and run tests
docker:
- image: cimg/python:3.8-node
steps:
- checkout
- python/install-packages:
pkg-manager: pip-dist
- run:
name: Run tests
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
- store_test_results:
path: junit.xml
build-package:
# build python package
docker:
- image: cimg/python:3.8-node
steps:
- checkout
- run:
name: Create the ~/artifacts directory if it doesn't exist
command: mkdir -p ~/artifacts
- python/dist
- store_artifacts:
path: dist
destination: ~/artifacts
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'
workflows:
build-and-test:
jobs:
- test-python
- build-package:
requires:
- test-python
# - deploy:
# requires:
# - build-package