config.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: 2.1
  2. orbs:
  3. # The python orb contains a set of prepackaged CircleCI configuration you can use repeatedly in your configuration files
  4. # Orb commands and jobs help you with common scripting around a language/tool
  5. # so you dont have to copy and paste it everywhere.
  6. # See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python
  7. python: circleci/python@1.2
  8. workflows:
  9. sample: # This is the name of the workflow, feel free to change it to better match your workflow.
  10. # Inside the workflow, you define the jobs you want to run.
  11. # For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
  12. jobs:
  13. - build-and-test
  14. jobs:
  15. build-and-test: # This is the name of the job, feel free to change it to better match what you're trying to do!
  16. # These next lines defines a Docker executors: https://circleci.com/docs/2.0/executor-types/
  17. # You can specify an image from Dockerhub or use one of the convenience images from CircleCI's Developer Hub
  18. # A list of available CircleCI Docker convenience images are available here: https://circleci.com/developer/images/image/cimg/python
  19. # The executor is the environment in which the steps below will be executed - below will use a python 3.9 container
  20. # Change the version below to your required version of python
  21. docker:
  22. - image: cimg/python:3.9
  23. # Checkout the code as the first step. This is a dedicated CircleCI step.
  24. # The python orb's install-packages step will install the dependencies from a Pipfile via Pipenv by default.
  25. # Here we're making sure we use just use the system-wide pip. By default it uses the project root's requirements.txt.
  26. # Then run your tests!
  27. # CircleCI will report the results back to your VCS provider.
  28. steps:
  29. - checkout
  30. - run:
  31. name: Run tests
  32. # This assumes pytest is installed via the install-package step above
  33. command: "python zipfly/test.py"