diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index bb74a86f5..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,27 +0,0 @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0cc9acae4..7d88d0ddd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,9 @@ on: push permissions: contents: write +env: + OPENAI_API_KEY: fake-api-key + jobs: deploy: runs-on: ubuntu-latest @@ -25,10 +28,5 @@ jobs: poetry lock && poetry install - - name: Set ENV vars - run: | - echo 'export OPENAI_API_KEY=fake-api-key' >> "$BASH_ENV" && - source "$BASH_ENV" - - name: Run tests run: poetry run pytest \ No newline at end of file