diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..1359c67 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/configuration-reference/#jobs +jobs: + test-id-throwaway: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/configuration-reference/#executor-job + docker: + - image: cimg/python:3.12.1 + # Add steps to the job + # See: https://circleci.com/docs/configuration-reference/#steps + steps: + - checkout + - run: + name: Install id + command: | + python -m pip install . --user + - run: + name: Generate throwaway credential + command: | + # Flush to /dev/null as a conservative measure: this token + # shouldn't be sensitive or used by anything, but there's + # also no reason to leak it by default. + python -m id throwaway > /dev/null + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + test-id-throwaway-workflow: + jobs: + - test-id-throwaway