Add .circleci/config.yml (#26)

* Add .circleci/config.yml

---------

Co-authored-by: João Moura <joaomdmoura@mgail.com>
This commit is contained in:
João Moura
2023-12-29 21:14:15 -03:00
committed by GitHub
parent ddab457422
commit 8638c328b4

27
.circleci/config.yml Normal file
View File

@@ -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