mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
fixing github action
This commit is contained in:
@@ -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
|
|
||||||
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@@ -5,6 +5,9 @@ on: push
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
OPENAI_API_KEY: fake-api-key
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -25,10 +28,5 @@ jobs:
|
|||||||
poetry lock &&
|
poetry lock &&
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
- name: Set ENV vars
|
|
||||||
run: |
|
|
||||||
echo 'export OPENAI_API_KEY=fake-api-key' >> "$BASH_ENV" &&
|
|
||||||
source "$BASH_ENV"
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: poetry run pytest
|
run: poetry run pytest
|
||||||
Reference in New Issue
Block a user