From 8638c328b4e5dff0f3a836cf1ba5ef7c4df982d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Fri, 29 Dec 2023 21:14:15 -0300 Subject: [PATCH] Add .circleci/config.yml (#26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add .circleci/config.yml --------- Co-authored-by: João Moura --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..bb74a86f5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +version: 2.1 + +jobs: + build-and-test: + docker: + - image: python:3.9.18 + steps: + - checkout + - run: + name: Install poetry + command: pip install poetry + - run: + name: Install dependencies + command: poetry install + - run: + name: Update PATH and Define Environment Variable at Runtime + command: | + echo 'export OPENAI_API_KEY=fake-api-key' >> "$BASH_ENV" + source "$BASH_ENV" + - run: + name: Run tests + command: poetry run pytest + +workflows: + build-and-test: + jobs: + - build-and-test \ No newline at end of file