From feafa586ae06e11cd9b1ffc98b179d49b630a7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Wed, 10 Jan 2024 12:24:37 -0300 Subject: [PATCH] fixing github action --- .circleci/config.yml | 27 --------------------------- .github/workflows/tests.yml | 8 +++----- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 .circleci/config.yml 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