| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # This config was automatically generated from your source code
- # Stacks detected: cicd:github-actions:.github/workflows,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.12-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.12-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'
- - run:
- name: found github actions config
- command: ':'
- workflows:
- build-and-test:
- jobs:
- - test-python
- - build-package:
- requires:
- - test-python
- # - deploy:
- # requires:
- # - build-package
|